pub struct Meta {
pub id: String,
pub title: String,
pub description: String,
pub keywords: Vec<String>,
pub icon: Option<String>,
pub order: i32,
pub when: Option<String>,
pub enabled: Option<String>,
pub reason: Option<String>,
}Expand description
What every node carries: a stable id (never translated, unique among
its siblings), a title and description (translated through the
strings catalogue), keywords for search, an icon, an order, and the
when and enabled clauses (the when language).
Fields§
§id: String§title: String§description: String§keywords: Vec<String>§icon: Option<String>§order: i32§when: Option<String>Shown when it holds.
enabled: Option<String>Greyed, with its reason, when it does not hold.
reason: Option<String>Why it is greyed when enabled does not hold (a tooltip).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Meta
impl<'de> Deserialize<'de> for Meta
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 Meta
Auto Trait Implementations§
impl Freeze for Meta
impl RefUnwindSafe for Meta
impl Send for Meta
impl Sync for Meta
impl Unpin for Meta
impl UnsafeUnpin for Meta
impl UnwindSafe for Meta
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