Struct doku::Variant [−][src]
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,
}
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
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Variant
impl UnwindSafe for Variant
Blanket Implementations
Mutably borrows from an owned value. Read more