pub struct DiffResult {
pub left_root: ObjectId,
pub right_root: ObjectId,
pub added: Vec<PointId>,
pub removed: Vec<PointId>,
pub changed: Vec<PointId>,
pub configuration_changed: bool,
pub buckets_changed: bool,
pub shared: ObjectStats,
pub left_unique: ObjectStats,
pub right_unique: ObjectStats,
}Expand description
Logical point and structural-sharing differences between two roots.
Fields§
§left_root: ObjectIdResolved left root.
right_root: ObjectIdResolved right root.
added: Vec<PointId>IDs present only on the right.
removed: Vec<PointId>IDs present only on the left.
changed: Vec<PointId>IDs present in both roots with changed point content.
configuration_changed: boolWhether collection metadata differs.
buckets_changed: boolWhether the persisted approximate index differs.
Objects reachable from both roots.
left_unique: ObjectStatsObjects reachable only from the left root.
right_unique: ObjectStatsObjects reachable only from the right root.
Trait Implementations§
Source§impl Clone for DiffResult
impl Clone for DiffResult
Source§impl Debug for DiffResult
impl Debug for DiffResult
Source§impl<'de> Deserialize<'de> for DiffResult
impl<'de> Deserialize<'de> for DiffResult
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 DiffResult
impl RefUnwindSafe for DiffResult
impl Send for DiffResult
impl Sync for DiffResult
impl Unpin for DiffResult
impl UnsafeUnpin for DiffResult
impl UnwindSafe for DiffResult
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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