pub struct NoteDefinition {
pub content: String,
pub background_color: Option<String>,
pub font_size: Option<String>,
pub text_align: Option<String>,
pub show_tick: Option<bool>,
pub tick_pos: Option<String>,
pub tick_edge: Option<String>,
}Expand description
Note/text widget definition
Fields§
§content: String§background_color: Option<String>§font_size: Option<String>§text_align: Option<String>§show_tick: Option<bool>§tick_pos: Option<String>§tick_edge: Option<String>Trait Implementations§
Source§impl Clone for NoteDefinition
impl Clone for NoteDefinition
Source§fn clone(&self) -> NoteDefinition
fn clone(&self) -> NoteDefinition
Returns a duplicate of the value. Read more
1.0.0 · 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 NoteDefinition
impl Debug for NoteDefinition
Source§impl<'de> Deserialize<'de> for NoteDefinition
impl<'de> Deserialize<'de> for NoteDefinition
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 NoteDefinition
impl RefUnwindSafe for NoteDefinition
impl Send for NoteDefinition
impl Sync for NoteDefinition
impl Unpin for NoteDefinition
impl UnwindSafe for NoteDefinition
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