pub struct Type {
pub comment: Option<&'static str>,
pub example: Option<Example>,
pub metas: Metas,
pub tag: Option<&'static str>,
pub serializable: bool,
pub deserializable: bool,
pub kind: TypeKind,
}Fields
comment: Option<&'static str>example: Option<Example>metas: Metastag: Option<&'static str>When we have an adjacently-tagged enum, this field contains name of the field that should represent that enum’s tag.
serializable: boolWhether this type is serializable or not (think
#[serde(skip_serializing)]).
deserializable: boolWhether this type is deserializable or not (think
#[serde(skip_deserializing)]).
kind: TypeKindTrait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more