pub struct StorageUnregisterBuilder {
contract: Contract,
force: bool,
}Expand description
Builder for configuring a storage_unregister transaction.
Created by StorageDeposit::unregister.
Fields§
§contract: Contract§force: boolImplementations§
Source§impl StorageUnregisterBuilder
impl StorageUnregisterBuilder
Sourcepub const fn force(self) -> Self
pub const fn force(self) -> Self
Sets force=true for the unregistering.
When enabled, the contract will ignore existing account data (such as non-zero token balances) and close the account anyway, potentially burning those balances.
Warning: This may result in permanent loss of tokens or other account data.
Sourcepub fn into_transaction(self) -> Result<ContractTransactBuilder, BuilderError>
pub fn into_transaction(self) -> Result<ContractTransactBuilder, BuilderError>
Builds and returns the transaction builder for this storage unregister.
Sourcepub fn with_signer(
self,
signer_id: AccountId,
signer: Arc<Signer>,
) -> Result<ExecuteSignedTransaction, BuilderError>
pub fn with_signer( self, signer_id: AccountId, signer: Arc<Signer>, ) -> Result<ExecuteSignedTransaction, BuilderError>
Adds a signer to the transaction.
This is a convenience method that calls into_transaction() and then with_signer().
Trait Implementations§
Source§impl Clone for StorageUnregisterBuilder
impl Clone for StorageUnregisterBuilder
Source§fn clone(&self) -> StorageUnregisterBuilder
fn clone(&self) -> StorageUnregisterBuilder
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 StorageUnregisterBuilder
impl RefUnwindSafe for StorageUnregisterBuilder
impl Send for StorageUnregisterBuilder
impl Sync for StorageUnregisterBuilder
impl Unpin for StorageUnregisterBuilder
impl UnwindSafe for StorageUnregisterBuilder
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