Struct struct_tag::StructTagData
source · [−]pub struct StructTagData(_);
Expand description
Wrapper around StructTag which is serialized as a string.
Implementations
sourceimpl StructTagData
impl StructTagData
sourcepub fn address_data(&self) -> AccountAddressData
pub fn address_data(&self) -> AccountAddressData
Gets the serializable address.
sourcepub fn module_id_data(&self) -> ModuleIdData
pub fn module_id_data(&self) -> ModuleIdData
Gets the serializable module ID.
Methods from Deref<Target = StructTag>
Trait Implementations
sourceimpl Clone for StructTagData
impl Clone for StructTagData
sourcefn clone(&self) -> StructTagData
fn clone(&self) -> StructTagData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StructTagData
impl Debug for StructTagData
sourceimpl Deref for StructTagData
impl Deref for StructTagData
sourceimpl<'de> Deserialize<'de> for StructTagData
impl<'de> Deserialize<'de> for StructTagData
sourcefn 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
sourceimpl Display for StructTagData
impl Display for StructTagData
sourceimpl From<&'_ StructTagData> for AccountAddressData
impl From<&'_ StructTagData> for AccountAddressData
sourcefn from(val: &StructTagData) -> Self
fn from(val: &StructTagData) -> Self
Converts to this type from the input type.
sourceimpl From<&'_ StructTagData> for ModuleIdData
impl From<&'_ StructTagData> for ModuleIdData
sourcefn from(val: &StructTagData) -> Self
fn from(val: &StructTagData) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a StructTagData> for &'a StructTag
impl<'a> From<&'a StructTagData> for &'a StructTag
sourcefn from(id: &'a StructTagData) -> Self
fn from(id: &'a StructTagData) -> Self
Converts to this type from the input type.
sourceimpl From<StructTag> for StructTagData
impl From<StructTag> for StructTagData
sourceimpl From<StructTagData> for StructTag
impl From<StructTagData> for StructTag
sourcefn from(id: StructTagData) -> Self
fn from(id: StructTagData) -> Self
Converts to this type from the input type.
sourceimpl From<StructTagData> for AccountAddress
impl From<StructTagData> for AccountAddress
sourcefn from(val: StructTagData) -> Self
fn from(val: StructTagData) -> Self
Converts to this type from the input type.
sourceimpl From<StructTagData> for ModuleId
impl From<StructTagData> for ModuleId
sourcefn from(val: StructTagData) -> Self
fn from(val: StructTagData) -> Self
Converts to this type from the input type.
sourceimpl FromStr for StructTagData
impl FromStr for StructTagData
sourceimpl Hash for StructTagData
impl Hash for StructTagData
sourceimpl JsonSchema for StructTagData
impl JsonSchema for StructTagData
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(_gen: &mut SchemaGenerator) -> Schema
fn json_schema(_gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the $ref
keyword. Read more
sourceimpl Ord for StructTagData
impl Ord for StructTagData
sourceimpl PartialEq<StructTagData> for StructTagData
impl PartialEq<StructTagData> for StructTagData
sourcefn eq(&self, other: &StructTagData) -> bool
fn eq(&self, other: &StructTagData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StructTagData) -> bool
fn ne(&self, other: &StructTagData) -> bool
This method tests for !=
.
sourceimpl PartialOrd<StructTagData> for StructTagData
impl PartialOrd<StructTagData> for StructTagData
sourcefn partial_cmp(&self, other: &StructTagData) -> Option<Ordering>
fn partial_cmp(&self, other: &StructTagData) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for StructTagData
impl Serialize for StructTagData
impl Eq for StructTagData
impl StructuralEq for StructTagData
impl StructuralPartialEq for StructTagData
Auto Trait Implementations
impl RefUnwindSafe for StructTagData
impl Send for StructTagData
impl Sync for StructTagData
impl Unpin for StructTagData
impl UnwindSafe for StructTagData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more