pub enum AnnotatedMoveValue {
U8(u8),
U64(u64),
U128(u128),
Bool(bool),
Address(AccountAddress),
Vector(TypeTag, Vec<AnnotatedMoveValue, Global>),
Bytes(Vec<u8, Global>),
Struct(AnnotatedMoveStruct),
}
Expand description
AnnotatedMoveValue is a fully expanded version of on chain Move data. This should only be used for debugging/client purpose right now and just for a better visualization of on chain data. In the long run, we would like to transform this struct to a Json value so that we can have a cross platform interpretation of the on chain data.
Variants§
U8(u8)
U64(u64)
U128(u128)
Bool(bool)
Address(AccountAddress)
Vector(TypeTag, Vec<AnnotatedMoveValue, Global>)
Bytes(Vec<u8, Global>)
Struct(AnnotatedMoveStruct)
Implementations§
§impl AnnotatedMoveValue
impl AnnotatedMoveValue
pub fn get_type(&self) -> TypeTag
Trait Implementations§
§impl Clone for AnnotatedMoveValue
impl Clone for AnnotatedMoveValue
§fn clone(&self) -> AnnotatedMoveValue
fn clone(&self) -> AnnotatedMoveValue
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 more§impl Debug for AnnotatedMoveValue
impl Debug for AnnotatedMoveValue
§impl Display for AnnotatedMoveValue
impl Display for AnnotatedMoveValue
§impl Serialize for AnnotatedMoveValue
impl Serialize for AnnotatedMoveValue
§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for AnnotatedMoveValue
impl Send for AnnotatedMoveValue
impl Sync for AnnotatedMoveValue
impl Unpin for AnnotatedMoveValue
impl UnwindSafe for AnnotatedMoveValue
Blanket Implementations§
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.