pub struct ChangeMetadata {
pub version: i64,
pub creation_version: Option<i64>,
pub operation: ChangeOperation,
pub changed_columns: Option<Bytes>,
pub context: Option<Bytes>,
}Expand description
Metadata from a Change Tracking query result.
Contains the system columns returned by CHANGETABLE(CHANGES ...).
Fields§
§version: i64The version when the row was last changed.
creation_version: Option<i64>The version when the row was created (inserted).
This is None for delete operations.
operation: ChangeOperationThe type of change (Insert, Update, Delete).
changed_columns: Option<Bytes>Binary mask of changed columns.
Use CHANGE_TRACKING_IS_COLUMN_IN_MASK() to interpret.
context: Option<Bytes>Application-defined change context.
Implementations§
Source§impl ChangeMetadata
impl ChangeMetadata
Trait Implementations§
Source§impl Clone for ChangeMetadata
impl Clone for ChangeMetadata
Source§fn clone(&self) -> ChangeMetadata
fn clone(&self) -> ChangeMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for ChangeMetadata
impl RefUnwindSafe for ChangeMetadata
impl Send for ChangeMetadata
impl Sync for ChangeMetadata
impl Unpin for ChangeMetadata
impl UnwindSafe for ChangeMetadata
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