pub enum SchemaStrictness {
Strict,
BestEffort,
Unspecified,
}Expand description
Rendering strictness for a JSON Schema.
Variants§
Strict
Require exact schema adherence where the source supports it.
BestEffort
Request schema adherence without requiring source enforcement.
Unspecified
Apply no portable strictness preference.
Trait Implementations§
Source§impl Clone for SchemaStrictness
impl Clone for SchemaStrictness
Source§impl Debug for SchemaStrictness
impl Debug for SchemaStrictness
Source§impl<'de> Deserialize<'de> for SchemaStrictness
impl<'de> Deserialize<'de> for SchemaStrictness
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
impl Eq for SchemaStrictness
Source§impl PartialEq for SchemaStrictness
impl PartialEq for SchemaStrictness
Source§impl Serialize for SchemaStrictness
impl Serialize for SchemaStrictness
impl StructuralPartialEq for SchemaStrictness
Auto Trait Implementations§
impl Freeze for SchemaStrictness
impl RefUnwindSafe for SchemaStrictness
impl Send for SchemaStrictness
impl Sync for SchemaStrictness
impl Unpin for SchemaStrictness
impl UnsafeUnpin for SchemaStrictness
impl UnwindSafe for SchemaStrictness
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.