pub struct ObjectChange {
pub id: ObjectId,
pub kind: ChangeKind,
pub fields: Vec<FieldChange>,
pub text: String,
pub suppressed: bool,
}Expand description
One object that differs.
Fields§
§id: ObjectIdThe object.
kind: ChangeKindHow it differs.
fields: Vec<FieldChange>The changed fields; empty unless kind is ChangeKind::Changed, when the object is
suppressed, and when only formatting changed (the text diff shows it, as in the plugin;
DiffOptions::normalize_manifests hides it).
text: StringThe text diff as the plugin prints it: + , - and two spaces before each line, ...
for omitted context. One line saying so when the kind is suppressed. An added object
starts with an empty removed line, as in the plugin.
suppressed: boolWhether the kind is in DiffOptions::suppress.
Trait Implementations§
Source§impl Clone for ObjectChange
impl Clone for ObjectChange
Source§impl Debug for ObjectChange
impl Debug for ObjectChange
Source§impl Display for ObjectChange
impl Display for ObjectChange
Source§impl PartialEq for ObjectChange
impl PartialEq for ObjectChange
impl StructuralPartialEq for ObjectChange
Auto Trait Implementations§
impl Forget for ObjectChange
impl Freeze for ObjectChange
impl Move for ObjectChange
impl RefUnwindSafe for ObjectChange
impl Send for ObjectChange
impl Sync for ObjectChange
impl Unpin for ObjectChange
impl UnsafeUnpin for ObjectChangewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<FieldChange>: UnsafeUnpin,
impl UnwindSafe for ObjectChange
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,
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more