Enum diem_resource_viewer::AnnotatedMoveValue [−]
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)Tuple Fields of U8
0: u8U64(u64)Tuple Fields of U64
0: u64U128(u128)Tuple Fields of U128
0: u128Bool(bool)Tuple Fields of Bool
0: boolVector(TypeTag, Vec<AnnotatedMoveValue, Global>)Tuple Fields of Vector
0: TypeTag1: Vec<AnnotatedMoveValue, Global>Struct(AnnotatedMoveStruct)Tuple Fields of Struct
Implementations
impl AnnotatedMoveValue
impl AnnotatedMoveValue
pub fn get_type(&self) -> TypeTag
Trait Implementations
impl Clone for AnnotatedMoveValue
impl Clone for AnnotatedMoveValue
pub fn clone(&self) -> AnnotatedMoveValue
pub fn clone(&self) -> AnnotatedMoveValue
Returns a copy of the value. Read more
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
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub 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
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
Generates a hash used only for tests.