pub enum SchemaType {
String {
format: Option<String>,
enum_values: Vec<String>,
},
Integer {
format: Option<String>,
minimum: Option<i64>,
maximum: Option<i64>,
},
Number {
format: Option<String>,
},
Boolean,
Array {
items: Box<SchemaType>,
},
Object {
properties: Vec<PropertyInfo>,
required: Vec<String>,
},
Ref {
name: String,
},
AnyOf {
options: Vec<SchemaType>,
},
Null,
}Expand description
Schema type for display.
Variants§
String
String type.
Fields
Integer
Integer type.
Fields
Number
Number type.
Boolean
Boolean type.
Array
Array type.
Fields
§
items: Box<SchemaType>Item schema.
Object
Object type.
Ref
Reference to another schema.
AnyOf
Any of (union type).
Fields
§
options: Vec<SchemaType>Options.
Null
Null type.
Implementations§
Source§impl SchemaType
impl SchemaType
Sourcepub fn short_description(&self) -> String
pub fn short_description(&self) -> String
Get a short type description.
Trait Implementations§
Source§impl Clone for SchemaType
impl Clone for SchemaType
Source§fn clone(&self) -> SchemaType
fn clone(&self) -> SchemaType
Returns a duplicate of the value. Read more
1.0.0 · 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 SchemaType
impl RefUnwindSafe for SchemaType
impl Send for SchemaType
impl Sync for SchemaType
impl Unpin for SchemaType
impl UnsafeUnpin for SchemaType
impl UnwindSafe for SchemaType
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