pub struct WriteModule {
pub address: String,
pub state_key_hash: String,
pub data: Box<MoveModuleBytecode>,
}Expand description
WriteModule : Write a new module or update an existing one
Fields§
§address: StringA hex encoded 32 byte Aptos account address. This is represented in a string as a 64 character hex string, sometimes shortened by stripping leading 0s, and adding a 0x. For example, address 0x0000000000000000000000000000000000000000000000000000000000000001 is represented as 0x1.
state_key_hash: StringState key hash
data: Box<MoveModuleBytecode>Implementations§
Source§impl WriteModule
impl WriteModule
Sourcepub fn new(
address: String,
state_key_hash: String,
data: MoveModuleBytecode,
) -> WriteModule
pub fn new( address: String, state_key_hash: String, data: MoveModuleBytecode, ) -> WriteModule
Write a new module or update an existing one
Trait Implementations§
Source§impl Clone for WriteModule
impl Clone for WriteModule
Source§fn clone(&self) -> WriteModule
fn clone(&self) -> WriteModule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WriteModule
impl Debug for WriteModule
Source§impl Default for WriteModule
impl Default for WriteModule
Source§fn default() -> WriteModule
fn default() -> WriteModule
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WriteModule
impl<'de> Deserialize<'de> for WriteModule
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 PartialEq for WriteModule
impl PartialEq for WriteModule
Source§fn eq(&self, other: &WriteModule) -> bool
fn eq(&self, other: &WriteModule) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WriteModule
impl Serialize for WriteModule
impl StructuralPartialEq for WriteModule
Auto Trait Implementations§
impl Freeze for WriteModule
impl RefUnwindSafe for WriteModule
impl Send for WriteModule
impl Sync for WriteModule
impl Unpin for WriteModule
impl UnsafeUnpin for WriteModule
impl UnwindSafe for WriteModule
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