pub struct SchemaTypeDef {
pub id: String,
pub name: Option<String>,
pub body: i32,
}Expand description
A named type definition inside a schema-graph.
The def itself does not carry metadata; metadata lives on the
referenced schema-type-node so there is one source of truth for
docs / aliases / examples / deprecation / role on each type.
Fields§
§id: StringStable identifier; unique within the enclosing graph.
name: Option<String>Optional human-readable qualified name (display only).
body: i32Index into the enclosing graph’s type-nodes for this def’s body.
Trait Implementations§
Source§impl Clone for SchemaTypeDef
impl Clone for SchemaTypeDef
Source§fn clone(&self) -> SchemaTypeDef
fn clone(&self) -> SchemaTypeDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SchemaTypeDef
impl RefUnwindSafe for SchemaTypeDef
impl Send for SchemaTypeDef
impl Sync for SchemaTypeDef
impl Unpin for SchemaTypeDef
impl UnsafeUnpin for SchemaTypeDef
impl UnwindSafe for SchemaTypeDef
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