pub struct ResolvedSchemaData {
pub nullable: bool,
pub read_only: bool,
pub write_only: bool,
pub deprecated: bool,
pub external_docs: Option<ExternalDocumentation>,
pub example: Option<Value>,
pub title: Option<String>,
pub description: Option<String>,
pub discriminator: Option<ResolvedDiscriminator>,
pub default: Option<Value>,
pub extensions: IndexMap<String, Value>,
}Expand description
SchemaData with the discriminator’s mapping targets resolved.
Default exists for the placeholder a schema’s slot holds while that
schema is still being resolved; it has no meaning of its own.
Fields§
§nullable: boolSee SchemaData::nullable.
read_only: boolMirrors upstream as-is: the specification forbids a schema being both
read-only and write-only, which neither openapiv3 nor this crate
enforces.
write_only: boolSee SchemaData::write_only, and the note on Self::read_only.
deprecated: bool§external_docs: Option<ExternalDocumentation>§example: Option<Value>See SchemaData::example.
title: Option<String>See SchemaData::title.
description: Option<String>§discriminator: Option<ResolvedDiscriminator>§default: Option<Value>See SchemaData::default.
extensions: IndexMap<String, Value>Trait Implementations§
Source§impl Debug for ResolvedSchemaData
impl Debug for ResolvedSchemaData
Source§impl Default for ResolvedSchemaData
impl Default for ResolvedSchemaData
Source§fn default() -> ResolvedSchemaData
fn default() -> ResolvedSchemaData
Returns the “default value” for a type. Read more
Source§impl PartialEq for ResolvedSchemaData
impl PartialEq for ResolvedSchemaData
impl StructuralPartialEq for ResolvedSchemaData
Auto Trait Implementations§
impl Freeze for ResolvedSchemaData
impl RefUnwindSafe for ResolvedSchemaData
impl Send for ResolvedSchemaData
impl Sync for ResolvedSchemaData
impl Unpin for ResolvedSchemaData
impl UnsafeUnpin for ResolvedSchemaData
impl UnwindSafe for ResolvedSchemaData
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