pub struct StructType<'a> {
pub name: &'a str,
pub fields: &'a [Field<'a>],
pub sealed: bool,
}
Expand description
StructType contains the schema of a struct.
Fields§
§name: &'a str
The name of the struct.
fields: &'a [Field<'a>]
The fields of the struct.
sealed: bool
Sealed indicates whether new fields can be added to the struct. If sealed is true, the struct is considered sealed and new fields cannot be added.
Trait Implementations§
Source§impl<'a> Clone for StructType<'a>
impl<'a> Clone for StructType<'a>
Source§fn clone(&self) -> StructType<'a>
fn clone(&self) -> StructType<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for StructType<'a>
impl<'a> Debug for StructType<'a>
Source§impl<'a> PartialEq for StructType<'a>
impl<'a> PartialEq for StructType<'a>
impl<'a> Eq for StructType<'a>
impl<'a> StructuralPartialEq for StructType<'a>
Auto Trait Implementations§
impl<'a> Freeze for StructType<'a>
impl<'a> RefUnwindSafe for StructType<'a>
impl<'a> Send for StructType<'a>
impl<'a> Sync for StructType<'a>
impl<'a> Unpin for StructType<'a>
impl<'a> UnwindSafe for StructType<'a>
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