Client

Trait Client 

Source
pub trait Client: RestClient {
    // Required method
    fn rest<'life0, 'async_trait, R>(
        &'life0 self,
        request: R,
    ) -> Pin<Box<dyn Future<Output = Result<R::Response, ApiError<Self::Error>>> + Send + 'async_trait>>
       where R: 'async_trait + HttpRequest + Send,
             Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

A trait representing an asynchronous client which can communicate with an OpenTalk instance.

Required Methods§

Source

fn rest<'life0, 'async_trait, R>( &'life0 self, request: R, ) -> Pin<Box<dyn Future<Output = Result<R::Response, ApiError<Self::Error>>> + Send + 'async_trait>>
where R: 'async_trait + HttpRequest + Send, Self: 'async_trait, 'life0: 'async_trait,

Send a REST query asynchronously.

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§