pub struct Schema<Id = SchemaHash> {
pub id: Id,
pub type_params: Vec<TypeParamName>,
pub kind: SchemaKind<Id>,
}Expand description
The root schema type, generic over the ID representation.
Fields§
§id: IdA unique identifier for this schema (hash of its contents)
type_params: Vec<TypeParamName>Type parameter names for generic types. Empty for non-generic types.
kind: SchemaKind<Id>The inner description of the schema, if it’s a struct, an enum, etc.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<Id> Freeze for Schema<Id>where
Id: Freeze,
impl<Id> RefUnwindSafe for Schema<Id>where
Id: RefUnwindSafe,
impl<Id> Send for Schema<Id>where
Id: Send,
impl<Id> Sync for Schema<Id>where
Id: Sync,
impl<Id> Unpin for Schema<Id>where
Id: Unpin,
impl<Id> UnsafeUnpin for Schema<Id>where
Id: UnsafeUnpin,
impl<Id> UnwindSafe for Schema<Id>where
Id: UnwindSafe,
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