freedom_api::extensions

Trait AccountExt

Source
pub trait AccountExt {
    // Required methods
    fn get_id(&self) -> Result<i32, Error>;
    fn get_users<C>(
        &self,
        client: &C,
    ) -> impl Future<Output = Result<<C as Api>::Container<Vec<User>>, Error>> + Send
       where C: Api + Send;
    fn get_satellites<C>(
        &self,
        client: &C,
    ) -> impl Future<Output = Result<<C as Api>::Container<Vec<Satellite>>, Error>>
       where C: Api + Send;
}

Required Methods§

Source

fn get_id(&self) -> Result<i32, Error>

Source

fn get_users<C>( &self, client: &C, ) -> impl Future<Output = Result<<C as Api>::Container<Vec<User>>, Error>> + Send
where C: Api + Send,

Source

fn get_satellites<C>( &self, client: &C, ) -> impl Future<Output = Result<<C as Api>::Container<Vec<Satellite>>, Error>>
where C: Api + 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.

Implementors§