pub struct StorageDepositBuilder {
contract: Contract,
account_id: AccountId,
amount: NearToken,
registration_only: bool,
}Expand description
Builder for configuring a storage_deposit transaction.
Created by StorageDeposit::deposit.
Fields§
§contract: Contract§account_id: AccountId§amount: NearToken§registration_only: boolImplementations§
Source§impl StorageDepositBuilder
impl StorageDepositBuilder
Sourcepub const fn registration_only(self) -> Self
pub const fn registration_only(self) -> Self
Sets registration_only=true for the deposit.
When enabled, the contract will refund any deposit above the minimum balance if the account wasn’t registered, and refund the full deposit if already registered.
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 deposit.
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 StorageDepositBuilder
impl Clone for StorageDepositBuilder
Source§fn clone(&self) -> StorageDepositBuilder
fn clone(&self) -> StorageDepositBuilder
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 StorageDepositBuilder
impl RefUnwindSafe for StorageDepositBuilder
impl Send for StorageDepositBuilder
impl Sync for StorageDepositBuilder
impl Unpin for StorageDepositBuilder
impl UnwindSafe for StorageDepositBuilder
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