pub struct RowIdentityPatch {
pub columns: Option<Vec<String>>,
pub by_position: Option<Vec<usize>>,
pub cardinality: Option<Cardinality>,
pub on_null_key: Option<IdentityFailurePolicy>,
pub on_duplicate_key: Option<IdentityFailurePolicy>,
}Expand description
Presence-preserving row-identity overrides for a selected path.
Runtime identities and dataset defaults use RowIdentity. Entry-level
configuration uses this patch type so an explicitly configured default
enum value is distinguishable from an omitted field. columns and
by_position are alternate key selectors; when both are present,
columns takes precedence.
Fields§
§columns: Option<Vec<String>>§by_position: Option<Vec<usize>>§cardinality: Option<Cardinality>§on_null_key: Option<IdentityFailurePolicy>§on_duplicate_key: Option<IdentityFailurePolicy>Implementations§
Source§impl RowIdentityPatch
impl RowIdentityPatch
Sourcepub fn apply_to(&self, identity: &mut RowIdentity)
pub fn apply_to(&self, identity: &mut RowIdentity)
Apply this entry-level override to a concrete inherited identity.
pub fn has_key_selector(&self) -> bool
Trait Implementations§
Source§impl Clone for RowIdentityPatch
impl Clone for RowIdentityPatch
Source§fn clone(&self) -> RowIdentityPatch
fn clone(&self) -> RowIdentityPatch
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 RowIdentityPatch
impl Debug for RowIdentityPatch
Source§impl Default for RowIdentityPatch
impl Default for RowIdentityPatch
Source§fn default() -> RowIdentityPatch
fn default() -> RowIdentityPatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RowIdentityPatch
impl<'de> Deserialize<'de> for RowIdentityPatch
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 RowIdentityPatch
impl PartialEq for RowIdentityPatch
Source§fn eq(&self, other: &RowIdentityPatch) -> bool
fn eq(&self, other: &RowIdentityPatch) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RowIdentityPatch
impl Serialize for RowIdentityPatch
impl Eq for RowIdentityPatch
impl StructuralPartialEq for RowIdentityPatch
Auto Trait Implementations§
impl Freeze for RowIdentityPatch
impl RefUnwindSafe for RowIdentityPatch
impl Send for RowIdentityPatch
impl Sync for RowIdentityPatch
impl Unpin for RowIdentityPatch
impl UnsafeUnpin for RowIdentityPatch
impl UnwindSafe for RowIdentityPatch
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