pub struct SchemaContract {
pub canonical: Value,
pub projection: SchemaProjectionPolicy,
}Fields§
§canonical: Value§projection: SchemaProjectionPolicyImplementations§
Source§impl SchemaContract
impl SchemaContract
pub fn new(canonical: Value) -> SchemaContract
pub fn with_projection( self, projection: SchemaProjectionPolicy, ) -> SchemaContract
pub fn with_override( self, dialect: impl Into<String>, schema: Value, ) -> SchemaContract
pub fn canonical(&self) -> &Value
Trait Implementations§
Source§impl Clone for SchemaContract
impl Clone for SchemaContract
Source§fn clone(&self) -> SchemaContract
fn clone(&self) -> SchemaContract
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 moreSource§impl Debug for SchemaContract
impl Debug for SchemaContract
Source§impl Default for SchemaContract
impl Default for SchemaContract
Source§fn default() -> SchemaContract
fn default() -> SchemaContract
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SchemaContract
impl<'de> Deserialize<'de> for SchemaContract
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SchemaContract, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SchemaContract, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SchemaContract
Source§impl From<Value> for SchemaContract
impl From<Value> for SchemaContract
Source§fn from(value: Value) -> SchemaContract
fn from(value: Value) -> SchemaContract
Converts to this type from the input type.
Source§impl PartialEq for SchemaContract
impl PartialEq for SchemaContract
Source§fn eq(&self, other: &SchemaContract) -> bool
fn eq(&self, other: &SchemaContract) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SchemaContract
impl Serialize for SchemaContract
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 SchemaContract
Auto Trait Implementations§
impl Freeze for SchemaContract
impl RefUnwindSafe for SchemaContract
impl Send for SchemaContract
impl Sync for SchemaContract
impl Unpin for SchemaContract
impl UnsafeUnpin for SchemaContract
impl UnwindSafe for SchemaContract
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