pub enum SchemaKind {
Show 13 variants
Any,
Null,
Boolean,
Integer,
Number,
String,
Array {
items: Box<SchemaValue>,
},
Object {
fields: Vec<Field>,
additional_properties: AdditionalProperties,
},
Reference {
reference: String,
},
OneOf {
variants: Vec<SchemaValue>,
},
AnyOf {
variants: Vec<SchemaValue>,
},
AllOf {
variants: Vec<SchemaValue>,
},
Not {
schema: Box<SchemaValue>,
},
}Expand description
The structural part of a SchemaValue.
Variants§
Any
Null
Boolean
Integer
Number
String
Array
Fields
§
items: Box<SchemaValue>Object
Reference
The full OpenAPI/JSON Schema reference is retained to support local,
external, and non-component references. Use reference_name when a
target needs the conventional final JSON-pointer segment.
OneOf
Fields
§
variants: Vec<SchemaValue>AnyOf
Fields
§
variants: Vec<SchemaValue>AllOf
Fields
§
variants: Vec<SchemaValue>Not
Fields
§
schema: Box<SchemaValue>Implementations§
Source§impl SchemaKind
impl SchemaKind
pub fn reference_name(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for SchemaKind
impl Clone for SchemaKind
Source§impl Debug for SchemaKind
impl Debug for SchemaKind
Source§impl<'de> Deserialize<'de> for SchemaKind
impl<'de> Deserialize<'de> for SchemaKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SchemaKind
Source§impl PartialEq for SchemaKind
impl PartialEq for SchemaKind
Source§impl Serialize for SchemaKind
impl Serialize for SchemaKind
impl StructuralPartialEq for SchemaKind
Auto Trait Implementations§
impl Freeze for SchemaKind
impl RefUnwindSafe for SchemaKind
impl Send for SchemaKind
impl Sync for SchemaKind
impl Unpin for SchemaKind
impl UnsafeUnpin for SchemaKind
impl UnwindSafe for SchemaKind
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