Struct doku::Type [−][src]
pub struct Type {
pub comment: Option<&'static str>,
pub example: Option<&'static str>,
pub tag: Option<&'static str>,
pub serializable: bool,
pub deserializable: bool,
pub def: TypeDef,
}Fields
comment: Option<&'static str>example: Option<&'static str>tag: Option<&'static str>When we have an adjacently-tagged enum, this field contains name of the field that should represent that enum’s tag.
E.g. in case of ChangelogEvent with its fancy EventDetails, we’d
have tag = Some("details");.
serializable: boolWhether this type is serializable or not (think
#[serde(skip_serializing)]). All types are serializable by
default, which is a behavior consistent with Serde.
deserializable: boolWhether this type is deserializable or not (think
#[serde(skip_deserializing)]). All types are deserializable by
default, which is a behavior consistent with Serde.
def: TypeDefImplementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Typeimpl UnwindSafe for TypeBlanket Implementations
Mutably borrows from an owned value. Read more