pub trait WithdrawFromIdentity {
    // Required method
    fn withdraw<'life0, 'life1, 'async_trait, S>(
        &'life0 self,
        sdk: &'life1 Sdk,
        address: Address,
        amount: u64,
        core_fee_per_byte: Option<u32>,
        user_fee_increase: Option<UserFeeIncrease>,
        signer: S,
        settings: Option<PutSettings>,
    ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>
       where S: 'async_trait + Signer + Send,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn withdraw<'life0, 'life1, 'async_trait, S>( &'life0 self, sdk: &'life1 Sdk, address: Address, amount: u64, core_fee_per_byte: Option<u32>, user_fee_increase: Option<UserFeeIncrease>, signer: S, settings: Option<PutSettings>, ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>
where S: 'async_trait + Signer + Send, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Function to withdraw credits from an identity. Returns the final identity balance.

Object Safety§

This trait is not object safe.

Implementors§