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: Metas
§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.
serializable: bool
Whether this type is serializable or not (think
#[serde(skip_serializing)]
).
deserializable: bool
Whether this type is deserializable or not (think
#[serde(skip_deserializing)]
).
kind: TypeKind
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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