pub struct ModuleId { /* private fields */ }Expand description
Represents the initial key into global storage where we first index by the address, and then the struct tag
Implementations§
Source§impl ModuleId
impl ModuleId
pub fn new(address: AccountAddress, name: Identifier) -> Self
pub fn name(&self) -> &IdentStr
pub fn address(&self) -> &AccountAddress
pub fn access_vector(&self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModuleId
impl<'de> Deserialize<'de> for ModuleId
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 From<ModuleId> for (AccountAddress, Identifier)
impl From<ModuleId> for (AccountAddress, Identifier)
Source§impl Ord for ModuleId
impl Ord for ModuleId
Source§impl PartialOrd for ModuleId
impl PartialOrd for ModuleId
impl Eq for ModuleId
impl StructuralPartialEq for ModuleId
Auto Trait Implementations§
impl Freeze for ModuleId
impl RefUnwindSafe for ModuleId
impl Send for ModuleId
impl Sync for ModuleId
impl Unpin for ModuleId
impl UnwindSafe for ModuleId
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