pub struct ObjectVersion {
pub object_id: ObjectId,
pub version: Version,
}Expand description
An ObjectId paired with one of that object’s versions.
Not a wire type: this is how transaction effects report the version an object was at before the transaction changed it.
Fields§
§object_id: ObjectIdThe object’s id.
version: VersionThe version the object is at.
Implementations§
Trait Implementations§
Source§impl Clone for ObjectVersion
impl Clone for ObjectVersion
Source§fn clone(&self) -> ObjectVersion
fn clone(&self) -> ObjectVersion
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 ObjectVersion
Source§impl Debug for ObjectVersion
impl Debug for ObjectVersion
Source§impl Display for ObjectVersion
impl Display for ObjectVersion
impl Eq for ObjectVersion
Source§impl Hash for ObjectVersion
impl Hash for ObjectVersion
Source§impl Ord for ObjectVersion
impl Ord for ObjectVersion
Source§fn cmp(&self, other: &ObjectVersion) -> Ordering
fn cmp(&self, other: &ObjectVersion) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ObjectVersion
impl PartialEq for ObjectVersion
Source§impl PartialOrd for ObjectVersion
impl PartialOrd for ObjectVersion
impl StructuralPartialEq for ObjectVersion
Auto Trait Implementations§
impl Freeze for ObjectVersion
impl RefUnwindSafe for ObjectVersion
impl Send for ObjectVersion
impl Sync for ObjectVersion
impl Unpin for ObjectVersion
impl UnsafeUnpin for ObjectVersion
impl UnwindSafe for ObjectVersion
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