pub enum TypeBody {
Record(Vec<RecordField>),
Union(Vec<UnionCase>),
Alias(String),
Struct(Vec<RecordField>),
}Expand description
Type body
Variants§
Record(Vec<RecordField>)
Record type
Union(Vec<UnionCase>)
Union type
Alias(String)
Alias
Struct(Vec<RecordField>)
Struct
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TypeBody
impl<'de> Deserialize<'de> for TypeBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for TypeBody
Auto Trait Implementations§
impl Freeze for TypeBody
impl RefUnwindSafe for TypeBody
impl Send for TypeBody
impl Sync for TypeBody
impl Unpin for TypeBody
impl UnsafeUnpin for TypeBody
impl UnwindSafe for TypeBody
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