pub enum CompatibilityMode {
Strict,
Normalize,
BestEffort,
}Expand description
Compatibility policy used during provider negotiation.
Variants§
Trait Implementations§
Source§impl Clone for CompatibilityMode
impl Clone for CompatibilityMode
Source§fn clone(&self) -> CompatibilityMode
fn clone(&self) -> CompatibilityMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompatibilityMode
Source§impl Debug for CompatibilityMode
impl Debug for CompatibilityMode
Source§impl Default for CompatibilityMode
impl Default for CompatibilityMode
Source§impl<'de> Deserialize<'de> for CompatibilityMode
impl<'de> Deserialize<'de> for CompatibilityMode
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 Display for CompatibilityMode
impl Display for CompatibilityMode
impl Eq for CompatibilityMode
Source§impl Hash for CompatibilityMode
impl Hash for CompatibilityMode
Source§impl JsonSchema for CompatibilityMode
impl JsonSchema for CompatibilityMode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for CompatibilityMode
impl Ord for CompatibilityMode
Source§fn cmp(&self, other: &CompatibilityMode) -> Ordering
fn cmp(&self, other: &CompatibilityMode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CompatibilityMode
impl PartialEq for CompatibilityMode
Source§impl PartialOrd for CompatibilityMode
impl PartialOrd for CompatibilityMode
Source§impl Serialize for CompatibilityMode
impl Serialize for CompatibilityMode
impl StructuralPartialEq for CompatibilityMode
Auto Trait Implementations§
impl Freeze for CompatibilityMode
impl RefUnwindSafe for CompatibilityMode
impl Send for CompatibilityMode
impl Sync for CompatibilityMode
impl Unpin for CompatibilityMode
impl UnsafeUnpin for CompatibilityMode
impl UnwindSafe for CompatibilityMode
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