pub struct NumberSchema {
pub description: Option<String>,
pub maximum: Option<i64>,
pub minimum: Option<i64>,
pub title: Option<String>,
pub type_: NumberSchemaType,
}
Expand description
NumberSchema
JSON schema
{
"type": "object",
"required": [
"type"
],
"properties": {
"description": {
"type": "string"
},
"maximum": {
"type": "integer"
},
"minimum": {
"type": "integer"
},
"title": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"integer",
"number"
]
}
}
}
Fields§
§description: Option<String>
§maximum: Option<i64>
§minimum: Option<i64>
§title: Option<String>
§type_: NumberSchemaType
Trait Implementations§
Source§impl Clone for NumberSchema
impl Clone for NumberSchema
Source§fn clone(&self) -> NumberSchema
fn clone(&self) -> NumberSchema
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NumberSchema
impl Debug for NumberSchema
Source§impl<'de> Deserialize<'de> for NumberSchema
impl<'de> Deserialize<'de> for NumberSchema
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
Source§impl From<NumberSchema> for PrimitiveSchemaDefinition
impl From<NumberSchema> for PrimitiveSchemaDefinition
Source§fn from(value: NumberSchema) -> Self
fn from(value: NumberSchema) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NumberSchema
impl RefUnwindSafe for NumberSchema
impl Send for NumberSchema
impl Sync for NumberSchema
impl Unpin for NumberSchema
impl UnwindSafe for NumberSchema
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