pub struct StringCategory {
pub name: String,
pub parent: Option<String>,
pub description: String,
}Expand description
A named category that can be assigned to a string.
Fields§
§name: StringStable category name.
parent: Option<String>Optional parent category name.
description: StringHuman-readable category description.
Trait Implementations§
Source§impl Clone for StringCategory
impl Clone for StringCategory
Source§fn clone(&self) -> StringCategory
fn clone(&self) -> StringCategory
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 StringCategory
impl Debug for StringCategory
Source§impl<'de> Deserialize<'de> for StringCategory
impl<'de> Deserialize<'de> for StringCategory
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 Eq for StringCategory
Source§impl Hash for StringCategory
impl Hash for StringCategory
Source§impl Ord for StringCategory
impl Ord for StringCategory
Source§fn cmp(&self, other: &StringCategory) -> Ordering
fn cmp(&self, other: &StringCategory) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StringCategory
impl PartialEq for StringCategory
Source§impl PartialOrd for StringCategory
impl PartialOrd for StringCategory
Source§impl Serialize for StringCategory
impl Serialize for StringCategory
impl StructuralPartialEq for StringCategory
Auto Trait Implementations§
impl Freeze for StringCategory
impl RefUnwindSafe for StringCategory
impl Send for StringCategory
impl Sync for StringCategory
impl Unpin for StringCategory
impl UnsafeUnpin for StringCategory
impl UnwindSafe for StringCategory
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