pub trait UserExt {
// Required methods
fn get_id(&self) -> Result<i32, Error>;
fn get_account<C>(
&self,
client: &C,
) -> impl Future<Output = Result<Account, Error>> + Send
where C: Api + Send;
}
Required Methods§
fn get_id(&self) -> Result<i32, Error>
fn get_account<C>( &self, client: &C, ) -> impl Future<Output = Result<Account, Error>> + Send
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.