pub struct StickyNote {
pub text: String,
pub rect: CanvasRect,
pub color: Option<String>,
}Expand description
A sticky note.
Fields§
§text: StringMarkdown/plain text body.
rect: CanvasRectNote bounds in canvas space.
color: Option<String>Note color (domain/theme-owned).
Trait Implementations§
Source§impl Clone for StickyNote
impl Clone for StickyNote
Source§fn clone(&self) -> StickyNote
fn clone(&self) -> StickyNote
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StickyNote
impl Debug for StickyNote
Source§impl<'de> Deserialize<'de> for StickyNote
impl<'de> Deserialize<'de> for StickyNote
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
Auto Trait Implementations§
impl Freeze for StickyNote
impl RefUnwindSafe for StickyNote
impl Send for StickyNote
impl Sync for StickyNote
impl Unpin for StickyNote
impl UnsafeUnpin for StickyNote
impl UnwindSafe for StickyNote
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