pub enum IrSchemaKind {
Object(IrObject),
Enum(IrEnum),
TaggedUnion(IrTaggedUnion),
Union(IrUnion),
Intersection(IrIntersection),
Alias(IrTypeExpr),
}Expand description
Pre-classified schema kind. The lowering pass determines this once; generators match on it directly instead of re-interpreting raw spec fields.
Variants§
Object(IrObject)
An object with named properties and optional additional properties.
Enum(IrEnum)
A typed enumeration.
TaggedUnion(IrTaggedUnion)
A discriminated union (oneOf with a discriminator field).
Union(IrUnion)
An untagged union (oneOf/anyOf without a discriminator).
Intersection(IrIntersection)
An intersection type (allOf).
Alias(IrTypeExpr)
A type alias — wraps a single type expression.
Trait Implementations§
Source§impl Clone for IrSchemaKind
impl Clone for IrSchemaKind
Source§fn clone(&self) -> IrSchemaKind
fn clone(&self) -> IrSchemaKind
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 moreSource§impl Debug for IrSchemaKind
impl Debug for IrSchemaKind
Auto Trait Implementations§
impl Freeze for IrSchemaKind
impl RefUnwindSafe for IrSchemaKind
impl Send for IrSchemaKind
impl Sync for IrSchemaKind
impl Unpin for IrSchemaKind
impl UnsafeUnpin for IrSchemaKind
impl UnwindSafe for IrSchemaKind
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