pub struct ObjectChange {
pub object_id: ObjectId,
pub input_version: Option<Version>,
pub input_digest: Option<ObjectDigest>,
pub output_version: Option<Version>,
pub output_digest: Option<ObjectDigest>,
pub id_operation: IdOperation,
}Expand description
What an executed transaction did to one object, with the version and digest each side is at resolved.
Not a wire type: this is ChangedObject with the versions filled in,
since a written object’s version is the transaction’s rather than one the
entry carries. A None version means the object did not exist on that side.
Fields§
§object_id: ObjectIdThe object’s id.
input_version: Option<Version>The version the object was at before the transaction, if it existed.
input_digest: Option<ObjectDigest>The digest the object had before the transaction, if it existed.
output_version: Option<Version>The version the object is at after the transaction, if it still exists.
output_digest: Option<ObjectDigest>The digest the object has after the transaction, if it still exists.
id_operation: IdOperationWhether the transaction created or deleted the object’s id.
Trait Implementations§
Source§impl Clone for ObjectChange
impl Clone for ObjectChange
Source§fn clone(&self) -> ObjectChange
fn clone(&self) -> ObjectChange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ObjectChange
Source§impl Debug for ObjectChange
impl Debug for ObjectChange
Source§impl Display for ObjectChange
impl Display for ObjectChange
impl Eq for ObjectChange
Source§impl PartialEq for ObjectChange
impl PartialEq for ObjectChange
impl StructuralPartialEq for ObjectChange
Auto Trait Implementations§
impl Freeze for ObjectChange
impl RefUnwindSafe for ObjectChange
impl Send for ObjectChange
impl Sync for ObjectChange
impl Unpin for ObjectChange
impl UnsafeUnpin for ObjectChange
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