pub struct ChangeSet {
pub accounts: BTreeMap<AccountAddress, AccountChangeSet>,
}Expand description
A collection of changes to a Move state.
Fields§
§accounts: BTreeMap<AccountAddress, AccountChangeSet>Implementations§
Source§impl ChangeSet
impl ChangeSet
pub fn new() -> Self
pub fn publish_or_overwrite_module( &mut self, module_id: ModuleId, blob: Vec<u8>, )
pub fn publish_module( &mut self, module_id: ModuleId, blob: Vec<u8>, ) -> Result<()>
pub fn unpublish_module(&mut self, module_id: ModuleId) -> Result<()>
pub fn publish_or_overwrite_resource( &mut self, addr: AccountAddress, struct_tag: StructTag, blob: Vec<u8>, )
pub fn publish_resource( &mut self, addr: AccountAddress, struct_tag: StructTag, blob: Vec<u8>, ) -> Result<()>
pub fn unpublish_resource( &mut self, addr: AccountAddress, struct_tag: StructTag, ) -> Result<()>
pub fn squash(&mut self, other: Self) -> Result<()>
pub fn into_modules(self) -> impl Iterator<Item = (ModuleId, Option<Vec<u8>>)>
pub fn modules( &self, ) -> impl Iterator<Item = (AccountAddress, &Identifier, Option<&[u8]>)>
pub fn resources( &self, ) -> impl Iterator<Item = (AccountAddress, &StructTag, Option<&[u8]>)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChangeSet
impl RefUnwindSafe for ChangeSet
impl Send for ChangeSet
impl Sync for ChangeSet
impl Unpin for ChangeSet
impl UnwindSafe for ChangeSet
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