pub struct Mark {
pub id: String,
pub kind: MarkKind,
pub points: Vec<[f64; 2]>,
pub text: Option<String>,
pub author: String,
pub color: String,
pub at: f64,
}Expand description
A mark on an image. Points run from 0 to 1 across the image’s width and height.
Fields§
§id: String§kind: MarkKind§points: Vec<[f64; 2]>§text: Option<String>A note’s or pin’s words.
Who made it, by email.
color: String§at: f64Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mark
impl<'de> Deserialize<'de> for Mark
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 Mark
Auto Trait Implementations§
impl Forget for Mark
impl Freeze for Mark
impl Move for Mark
impl RefUnwindSafe for Mark
impl Send for Mark
impl Sync for Mark
impl Unpin for Mark
impl UnsafeUnpin for Mark
impl UnwindSafe for Mark
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