pub struct Variant {
pub id: &'static str,
pub title: &'static str,
pub comment: Option<&'static str>,
pub serializable: bool,
pub deserializable: bool,
pub fields: Fields,
pub aliases: &'static [&'static str],
}
Fields§
§id: &'static str
Identifier of the variant; it includes #[serde(rename)]
and similar
attributes, so this string is exactly what gets serialized into the
output.
title: &'static str
Title of the variant as it was written in the Rust code, excluding
stuff like #[serde(rename)]
.
comment: Option<&'static str>
§serializable: bool
§deserializable: bool
§fields: Fields
§aliases: &'static [&'static str]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Variant
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnwindSafe for Variant
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