pub struct Hotspot {
pub kind: HotspotKind,
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
pub title: String,
pub text: String,
pub from_ms: u64,
pub until_ms: u64,
}Expand description
A spot on the screen that talks to whoever is watching.
Fields§
§kind: HotspotKindWhat it does.
x: f32Where, in the logical pixels of the app.
y: f32Where, in the logical pixels of the app.
width: f32Its width.
height: f32Its height.
title: StringIn a few words.
text: StringWhat to say.
from_ms: u64When it appears, in milliseconds.
until_ms: u64When it goes away, in milliseconds.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hotspot
impl<'de> Deserialize<'de> for Hotspot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Hotspot
Auto Trait Implementations§
impl Freeze for Hotspot
impl RefUnwindSafe for Hotspot
impl Send for Hotspot
impl Sync for Hotspot
impl Unpin for Hotspot
impl UnsafeUnpin for Hotspot
impl UnwindSafe for Hotspot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more