pub struct AnySchema {Show 24 fields
pub typ: Option<String>,
pub pattern: Option<String>,
pub multiple_of: Option<f64>,
pub exclusive_minimum: Option<bool>,
pub exclusive_maximum: Option<bool>,
pub minimum: Option<f64>,
pub maximum: Option<f64>,
pub properties: RefOrMap<Schema>,
pub required: Vec<String>,
pub additional_properties: Option<AdditionalProperties>,
pub min_properties: Option<usize>,
pub max_properties: Option<usize>,
pub items: Option<Box<RefOr<Schema>>>,
pub min_items: Option<usize>,
pub max_items: Option<usize>,
pub unique_items: Option<bool>,
pub enumeration: Vec<Value>,
pub format: Option<String>,
pub min_length: Option<usize>,
pub max_length: Option<usize>,
pub one_of: Vec<RefOr<Schema>>,
pub all_of: Vec<RefOr<Schema>>,
pub any_of: Vec<RefOr<Schema>>,
pub not: Option<Box<RefOr<Schema>>>,
}
Expand description
Catch-all for any combination of properties that doesn’t correspond to one of the predefined subsets.
Fields§
§typ: Option<String>
§pattern: Option<String>
§multiple_of: Option<f64>
§exclusive_minimum: Option<bool>
§exclusive_maximum: Option<bool>
§minimum: Option<f64>
§maximum: Option<f64>
§properties: RefOrMap<Schema>
§required: Vec<String>
§additional_properties: Option<AdditionalProperties>
§min_properties: Option<usize>
§max_properties: Option<usize>
§items: Option<Box<RefOr<Schema>>>
§min_items: Option<usize>
§max_items: Option<usize>
§unique_items: Option<bool>
§enumeration: Vec<Value>
§format: Option<String>
§min_length: Option<usize>
§max_length: Option<usize>
§one_of: Vec<RefOr<Schema>>
§all_of: Vec<RefOr<Schema>>
§any_of: Vec<RefOr<Schema>>
§not: Option<Box<RefOr<Schema>>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AnySchema
impl<'de> Deserialize<'de> for AnySchema
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AnySchema, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AnySchema, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AnySchema
impl Serialize for AnySchema
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AnySchema
Auto Trait Implementations§
impl Freeze for AnySchema
impl RefUnwindSafe for AnySchema
impl Send for AnySchema
impl Sync for AnySchema
impl Unpin for AnySchema
impl UnwindSafe for AnySchema
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