Enum move_core_types::value::MoveStruct
source · pub enum MoveStruct {
Runtime(Vec<MoveValue>),
WithFields(Vec<(Identifier, MoveValue)>),
}
Variants§
Runtime(Vec<MoveValue>)
The representation used by the MoveVM
WithFields(Vec<(Identifier, MoveValue)>)
A decorated representation with human-readable field names that can be used by clients
Implementations§
source§impl MoveStruct
impl MoveStruct
pub fn new(value: Vec<MoveValue>) -> Self
pub fn with_fields(values: Vec<(Identifier, MoveValue)>) -> Self
pub fn simple_deserialize(blob: &[u8], ty: &MoveStructLayout) -> AResult<Self>
pub fn fields(&self) -> &[MoveValue]
pub fn into_fields(self) -> Vec<MoveValue> ⓘ
Trait Implementations§
source§impl Clone for MoveStruct
impl Clone for MoveStruct
source§fn clone(&self) -> MoveStruct
fn clone(&self) -> MoveStruct
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 MoveStruct
impl Debug for MoveStruct
source§impl PartialEq<MoveStruct> for MoveStruct
impl PartialEq<MoveStruct> for MoveStruct
source§fn eq(&self, other: &MoveStruct) -> bool
fn eq(&self, other: &MoveStruct) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.