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