pub struct ChangeSet {
pub rows: Vec<RowChange>,
pub edges: Vec<EdgeChange>,
pub vectors: Vec<VectorChange>,
pub ddl: Vec<DdlChange>,
}Expand description
A set of changes extracted from a database since a given LSN.
Fields§
§rows: Vec<RowChange>§edges: Vec<EdgeChange>§vectors: Vec<VectorChange>§ddl: Vec<DdlChange>Implementations§
Source§impl ChangeSet
impl ChangeSet
Sourcepub fn filter_by_direction(
&self,
directions: &HashMap<String, SyncDirection>,
include: &[SyncDirection],
) -> ChangeSet
pub fn filter_by_direction( &self, directions: &HashMap<String, SyncDirection>, include: &[SyncDirection], ) -> ChangeSet
Filters this changeset to only include tables matching the given directions.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChangeSet
impl<'de> Deserialize<'de> for ChangeSet
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
Auto Trait Implementations§
impl Freeze for ChangeSet
impl RefUnwindSafe for ChangeSet
impl Send for ChangeSet
impl Sync for ChangeSet
impl Unpin for ChangeSet
impl UnsafeUnpin for ChangeSet
impl UnwindSafe for ChangeSet
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more