pub struct AccountChangeSet {
pub modules: BTreeMap<Identifier, Option<Vec<u8>>>,
pub resources: BTreeMap<StructTag, Option<Vec<u8>>>,
}Expand description
A collection of changes to modules and resources under a Move account.
Fields§
§modules: BTreeMap<Identifier, Option<Vec<u8>>>§resources: BTreeMap<StructTag, Option<Vec<u8>>>Implementations§
Source§impl AccountChangeSet
impl AccountChangeSet
pub fn new() -> Self
pub fn squash(&mut self, other: Self) -> Result<()>
pub fn publish_or_overwrite_module(&mut self, name: Identifier, blob: Vec<u8>)
pub fn publish_or_overwrite_resource( &mut self, struct_tag: StructTag, blob: Vec<u8>, )
pub fn publish_module(&mut self, name: Identifier, blob: Vec<u8>) -> Result<()>
pub fn unpublish_module(&mut self, name: Identifier) -> Result<()>
pub fn publish_resource( &mut self, struct_tag: StructTag, blob: Vec<u8>, ) -> Result<()>
pub fn unpublish_resource(&mut self, struct_tag: StructTag) -> Result<()>
Trait Implementations§
Source§impl Clone for AccountChangeSet
impl Clone for AccountChangeSet
Source§fn clone(&self) -> AccountChangeSet
fn clone(&self) -> AccountChangeSet
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 moreAuto Trait Implementations§
impl Freeze for AccountChangeSet
impl RefUnwindSafe for AccountChangeSet
impl Send for AccountChangeSet
impl Sync for AccountChangeSet
impl Unpin for AccountChangeSet
impl UnwindSafe for AccountChangeSet
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