pub struct KeyChange {
pub key: String,
pub value: Option<ValueDiff>,
pub bytes: Option<ByteDiff>,
pub verdict: Option<(VerdictWire, VerdictWire)>,
pub registration: Option<(RegistrationWire, RegistrationWire)>,
pub holder: Option<(Holder, Holder)>,
pub timestamp: (Option<String>, Option<String>),
}Expand description
One key present in both snapshots that moved on at least one facet.
A facet pair is present only when that facet differs; timestamp is
always carried because the two stamps are what date the change.
Fields§
§key: String§value: Option<ValueDiff>The structural diff, when both sides carried a structural value.
bytes: Option<ByteDiff>The byte comparison, when at least one side did not.
verdict: Option<(VerdictWire, VerdictWire)>(a, b) when the verdict moved.
registration: Option<(RegistrationWire, RegistrationWire)>(a, b) when the registration rung moved.
holder: Option<(Holder, Holder)>(a, b) when the holder moved.
timestamp: (Option<String>, Option<String>)(a, b) stamps, each absent where the value carried none.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyChange
impl<'de> Deserialize<'de> for KeyChange
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
impl StructuralPartialEq for KeyChange
Auto Trait Implementations§
impl Freeze for KeyChange
impl RefUnwindSafe for KeyChange
impl Send for KeyChange
impl Sync for KeyChange
impl Unpin for KeyChange
impl UnsafeUnpin for KeyChange
impl UnwindSafe for KeyChange
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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