pub struct IrSchema {
pub name: String,
pub description: Option<String>,
pub deprecated: bool,
pub kind: IrSchemaKind,
pub is_component: bool,
}Expand description
A named schema in the IR. Every schema has a name (its key in IrSpec.schemas),
optional metadata, and a classified kind.
Fields§
§name: String§description: Option<String>§deprecated: bool§kind: IrSchemaKind§is_component: boolWhether this schema originated from components/schemas (true) or was
promoted from an inline definition in operations/responses (false).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IrSchema
impl RefUnwindSafe for IrSchema
impl Send for IrSchema
impl Sync for IrSchema
impl Unpin for IrSchema
impl UnsafeUnpin for IrSchema
impl UnwindSafe for IrSchema
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