pub struct PatchDelete<T: DynTable, S: AsRef<str>, B: AsRef<[u8]>> { /* private fields */ }Expand description
Represents a delete operation in patchset format.
Only stores the table schema and primary key values, as patchsets don’t include full row data for deletions.
Implementations§
Source§impl<T: DynTable, S: AsRef<str>, B: AsRef<[u8]>> PatchDelete<T, S, B>
impl<T: DynTable, S: AsRef<str>, B: AsRef<[u8]>> PatchDelete<T, S, B>
Sourcepub fn new(table: T, pk: Vec<Value<S, B>>) -> Self
pub fn new(table: T, pk: Vec<Value<S, B>>) -> Self
Create a new patchset delete for the given table and primary key values.
The pk values should be the primary key column values, in the order
they appear in the table schema. This is the same format returned by
crate::SchemaWithPK::extract_pk.
Trait Implementations§
Source§impl<T: Clone + DynTable, S: Clone + AsRef<str>, B: Clone + AsRef<[u8]>> Clone for PatchDelete<T, S, B>
impl<T: Clone + DynTable, S: Clone + AsRef<str>, B: Clone + AsRef<[u8]>> Clone for PatchDelete<T, S, B>
Source§fn clone(&self) -> PatchDelete<T, S, B>
fn clone(&self) -> PatchDelete<T, S, B>
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<T: Debug + DynTable, S: Debug + AsRef<str>, B: Debug + AsRef<[u8]>> Debug for PatchDelete<T, S, B>
impl<T: Debug + DynTable, S: Debug + AsRef<str>, B: Debug + AsRef<[u8]>> Debug for PatchDelete<T, S, B>
impl<T: Eq + DynTable, S: Eq + AsRef<str>, B: Eq + AsRef<[u8]>> Eq for PatchDelete<T, S, B>
Source§impl<T: PartialEq + DynTable, S: PartialEq + AsRef<str>, B: PartialEq + AsRef<[u8]>> PartialEq for PatchDelete<T, S, B>
impl<T: PartialEq + DynTable, S: PartialEq + AsRef<str>, B: PartialEq + AsRef<[u8]>> PartialEq for PatchDelete<T, S, B>
impl<T: PartialEq + DynTable, S: PartialEq + AsRef<str>, B: PartialEq + AsRef<[u8]>> StructuralPartialEq for PatchDelete<T, S, B>
Auto Trait Implementations§
impl<T, S, B> Freeze for PatchDelete<T, S, B>where
T: Freeze,
impl<T, S, B> RefUnwindSafe for PatchDelete<T, S, B>
impl<T, S, B> Send for PatchDelete<T, S, B>
impl<T, S, B> Sync for PatchDelete<T, S, B>
impl<T, S, B> Unpin for PatchDelete<T, S, B>
impl<T, S, B> UnsafeUnpin for PatchDelete<T, S, B>where
T: UnsafeUnpin,
impl<T, S, B> UnwindSafe for PatchDelete<T, S, B>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.