pub struct MoveObject {
pub type_: MoveObjectType,
pub version: Version,
pub contents: Vec<u8>,
/* private fields */
}Fields§
§type_: MoveObjectTypeThe type of this object. Immutable
version: VersionNumber that increases each time a tx takes this object as a mutable input This is a lamport timestamp, not a sequentially increasing version
contents: Vec<u8>BCS bytes of a Move struct value
Implementations§
Source§impl MoveObject
impl MoveObject
Sourcepub fn id(&self) -> ObjectId
pub fn id(&self) -> ObjectId
Get the object’s ID from its BCS serialization.
§Panics
This will panic if the BCS contents do not enconde a MoveObject.
Trait Implementations§
Source§impl Clone for MoveObject
impl Clone for MoveObject
Source§fn clone(&self) -> MoveObject
fn clone(&self) -> MoveObject
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MoveObject
impl Debug for MoveObject
Source§impl<'de> Deserialize<'de> for MoveObject
impl<'de> Deserialize<'de> for MoveObject
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
Source§impl Hash for MoveObject
impl Hash for MoveObject
Source§impl PartialEq for MoveObject
impl PartialEq for MoveObject
Source§impl Serialize for MoveObject
impl Serialize for MoveObject
impl Eq for MoveObject
impl StructuralPartialEq for MoveObject
Auto Trait Implementations§
impl Freeze for MoveObject
impl RefUnwindSafe for MoveObject
impl Send for MoveObject
impl Sync for MoveObject
impl Unpin for MoveObject
impl UnwindSafe for MoveObject
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