pub struct SchemaMapping {
pub source_ref: String,
pub target_ref: String,
pub mapping_rule: String,
pub preservation_claims: Vec<Id>,
pub loss_claims: Vec<Description>,
pub required_reviews: Vec<Id>,
}Expand description
Single mapping inside a schema morphism.
Fields§
§source_ref: StringSource schema reference.
target_ref: StringTarget schema reference.
mapping_rule: StringMapping rule.
preservation_claims: Vec<Id>Invariant preservation claims.
loss_claims: Vec<Description>Loss claims.
required_reviews: Vec<Id>Required review policies.
Trait Implementations§
Source§impl Clone for SchemaMapping
impl Clone for SchemaMapping
Source§fn clone(&self) -> SchemaMapping
fn clone(&self) -> SchemaMapping
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 SchemaMapping
impl Debug for SchemaMapping
Source§impl<'de> Deserialize<'de> for SchemaMapping
impl<'de> Deserialize<'de> for SchemaMapping
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 PartialEq for SchemaMapping
impl PartialEq for SchemaMapping
Source§fn eq(&self, other: &SchemaMapping) -> bool
fn eq(&self, other: &SchemaMapping) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SchemaMapping
impl Serialize for SchemaMapping
impl StructuralPartialEq for SchemaMapping
Auto Trait Implementations§
impl Freeze for SchemaMapping
impl RefUnwindSafe for SchemaMapping
impl Send for SchemaMapping
impl Sync for SchemaMapping
impl Unpin for SchemaMapping
impl UnsafeUnpin for SchemaMapping
impl UnwindSafe for SchemaMapping
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