pub struct BooleanSchema {
pub default: Option<bool>,
pub description: Option<String>,
pub title: Option<String>,
/* private fields */
}
Expand description
BooleanSchema
JSON schema
{
"type": "object",
"required": [
"type"
],
"properties": {
"default": {
"type": "boolean"
},
"description": {
"type": "string"
},
"title": {
"type": "string"
},
"type": {
"type": "string",
"const": "boolean"
}
}
}
Fields§
§default: Option<bool>
§description: Option<String>
§title: Option<String>
Implementations§
Trait Implementations§
Source§impl Clone for BooleanSchema
impl Clone for BooleanSchema
Source§fn clone(&self) -> BooleanSchema
fn clone(&self) -> BooleanSchema
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 BooleanSchema
impl Debug for BooleanSchema
Source§impl<'de> Deserialize<'de> for BooleanSchema
impl<'de> Deserialize<'de> for BooleanSchema
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<BooleanSchema> for PrimitiveSchemaDefinition
impl From<BooleanSchema> for PrimitiveSchemaDefinition
Source§fn from(value: BooleanSchema) -> Self
fn from(value: BooleanSchema) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BooleanSchema
impl RefUnwindSafe for BooleanSchema
impl Send for BooleanSchema
impl Sync for BooleanSchema
impl Unpin for BooleanSchema
impl UnwindSafe for BooleanSchema
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