pub struct PrimitiveSchema {
pub schema_type: SchemaType,
pub format: Option<String>,
pub nullable: bool,
}Expand description
Primitive type schema.
Fields§
§schema_type: SchemaTypeJSON Schema type.
format: Option<String>Format hint.
nullable: boolNullable flag (OpenAPI 3.1).
Implementations§
Trait Implementations§
Source§impl Clone for PrimitiveSchema
impl Clone for PrimitiveSchema
Source§fn clone(&self) -> PrimitiveSchema
fn clone(&self) -> PrimitiveSchema
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 moreSource§impl Debug for PrimitiveSchema
impl Debug for PrimitiveSchema
Source§impl<'de> Deserialize<'de> for PrimitiveSchema
impl<'de> Deserialize<'de> for PrimitiveSchema
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
Auto Trait Implementations§
impl Freeze for PrimitiveSchema
impl RefUnwindSafe for PrimitiveSchema
impl Send for PrimitiveSchema
impl Sync for PrimitiveSchema
impl Unpin for PrimitiveSchema
impl UnwindSafe for PrimitiveSchema
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