pub trait WalletApi {
// Required methods
fn create_wallet_group(
&self,
metadata: &WalletGroupMetadataParam,
) -> impl Future<Output = Result<ApiResponse<WalletGroup>, Error>>;
fn wallet_group_list(
&self,
) -> impl Future<Output = Result<ApiResponse<Vec<WalletGroup>>, Error>>;
fn create_wallet(
&self,
wallet_param: &WalletParam,
) -> impl Future<Output = Result<ApiResponse<Wallet>, Error>>;
fn recover_wallet(
&self,
recovery_param: &RecoveryParam,
) -> impl Future<Output = Result<ApiResponse<Wallet>, Error>>;
}Required Methods§
fn create_wallet_group( &self, metadata: &WalletGroupMetadataParam, ) -> impl Future<Output = Result<ApiResponse<WalletGroup>, Error>>
fn wallet_group_list( &self, ) -> impl Future<Output = Result<ApiResponse<Vec<WalletGroup>>, Error>>
fn create_wallet( &self, wallet_param: &WalletParam, ) -> impl Future<Output = Result<ApiResponse<Wallet>, Error>>
fn recover_wallet( &self, recovery_param: &RecoveryParam, ) -> impl Future<Output = Result<ApiResponse<Wallet>, Error>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.