pub struct TypeName {
pub name: String,
}
Fields§
§name: String
String representation of the type. All types are represented
using their source syntax:
“u8”, “u64”, “bool”, “address”, “vector”, and so on for primitive types.
Struct types are represented as fully qualified type names; e.g.
00000000000000000000000000000001::string::String
or
0000000000000000000000000000000a::module_name1::type_name1<0000000000000000000000000000000a::module_name2::type_name2<u64>>
Addresses are hex-encoded lowercase values of length ADDRESS_LENGTH (16, 20, or 32 depending on the Move platform)
Implementations§
Source§impl TypeName
impl TypeName
pub fn move_instance(self) -> MoveInstance<Self>
pub fn type_() -> TypeNameTypeTag
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TypeName
impl<'de> Deserialize<'de> for TypeName
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 MoveStruct for TypeName
impl MoveStruct for TypeName
type StructTag = TypeNameTypeTag
Source§impl MoveType for TypeName
impl MoveType for TypeName
Source§impl StaticModule for TypeName
impl StaticModule for TypeName
fn module() -> Identifier
Source§impl StaticName for TypeName
impl StaticName for TypeName
fn name() -> Identifier
Source§impl StaticTypeParams for TypeName
impl StaticTypeParams for TypeName
fn type_params() -> Vec<TypeTag>
impl Eq for TypeName
impl StructuralPartialEq for TypeName
Auto Trait Implementations§
impl Freeze for TypeName
impl RefUnwindSafe for TypeName
impl Send for TypeName
impl Sync for TypeName
impl Unpin for TypeName
impl UnwindSafe for TypeName
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more