pub struct MoveModuleId {
pub address: AccountAddress,
pub name: Identifier,
}Expand description
A Move module identifier (address::module_name).
Fields§
§address: AccountAddressThe address where the module is published.
name: IdentifierThe name of the module.
Implementations§
Source§impl MoveModuleId
impl MoveModuleId
Sourcepub fn new(address: AccountAddress, name: Identifier) -> Self
pub fn new(address: AccountAddress, name: Identifier) -> Self
Creates a new module ID.
Sourcepub fn from_str_strict(s: &str) -> AptosResult<Self>
pub fn from_str_strict(s: &str) -> AptosResult<Self>
Parses a module ID from a string (e.g., “0x1::coin”).
§Errors
Returns an error if the string is not in the format address::module_name, the address
is invalid, or the module name is not a valid identifier.
Trait Implementations§
Source§impl Clone for MoveModuleId
impl Clone for MoveModuleId
Source§fn clone(&self) -> MoveModuleId
fn clone(&self) -> MoveModuleId
Returns a duplicate 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 MoveModuleId
impl Debug for MoveModuleId
Source§impl<'de> Deserialize<'de> for MoveModuleId
impl<'de> Deserialize<'de> for MoveModuleId
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 Display for MoveModuleId
impl Display for MoveModuleId
Source§impl FromStr for MoveModuleId
impl FromStr for MoveModuleId
Source§impl Hash for MoveModuleId
impl Hash for MoveModuleId
Source§impl PartialEq for MoveModuleId
impl PartialEq for MoveModuleId
Source§impl Serialize for MoveModuleId
impl Serialize for MoveModuleId
impl Eq for MoveModuleId
impl StructuralPartialEq for MoveModuleId
Auto Trait Implementations§
impl Freeze for MoveModuleId
impl RefUnwindSafe for MoveModuleId
impl Send for MoveModuleId
impl Sync for MoveModuleId
impl Unpin for MoveModuleId
impl UnwindSafe for MoveModuleId
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoMoveArg for Twhere
T: Serialize,
impl<T> IntoMoveArg for Twhere
T: Serialize,
Source§fn into_move_arg(self) -> Result<Vec<u8>, AptosError>
fn into_move_arg(self) -> Result<Vec<u8>, AptosError>
Converts this value into BCS-encoded bytes. Read more
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.