SerdeClientExt

Trait SerdeClientExt 

Source
pub trait SerdeClientExt {
    // Required methods
    fn query_required_single_serde<'life0, 'life1, 'life2, 'async_trait, T>(
        &'life0 self,
        query: &'life1 str,
        args: &'life2 (impl 'async_trait + QueryArgs),
    ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>
       where T: DeserializeOwned + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn query_serde<'life0, 'life1, 'life2, 'async_trait, T>(
        &'life0 self,
        query: &'life1 str,
        args: &'life2 (impl 'async_trait + QueryArgs),
    ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>
       where T: DeserializeOwned + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn query_single_serde<'life0, 'life1, 'life2, 'async_trait, T>(
        &'life0 self,
        query: &'life1 str,
        args: &'life2 (impl 'async_trait + QueryArgs),
    ) -> Pin<Box<dyn Future<Output = Result<Option<T>, Error>> + Send + 'async_trait>>
       where T: DeserializeOwned + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn query_required_single_serde<'life0, 'life1, 'life2, 'async_trait, T>( &'life0 self, query: &'life1 str, args: &'life2 (impl 'async_trait + QueryArgs), ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>
where T: DeserializeOwned + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn query_serde<'life0, 'life1, 'life2, 'async_trait, T>( &'life0 self, query: &'life1 str, args: &'life2 (impl 'async_trait + QueryArgs), ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>
where T: DeserializeOwned + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn query_single_serde<'life0, 'life1, 'life2, 'async_trait, T>( &'life0 self, query: &'life1 str, args: &'life2 (impl 'async_trait + QueryArgs), ) -> Pin<Box<dyn Future<Output = Result<Option<T>, Error>> + Send + 'async_trait>>
where T: DeserializeOwned + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

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.

Implementations on Foreign Types§

Source§

impl SerdeClientExt for Client

Source§

fn query_required_single_serde<'life0, 'life1, 'life2, 'async_trait, T>( &'life0 self, query: &'life1 str, args: &'life2 (impl 'async_trait + QueryArgs), ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>
where T: DeserializeOwned + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

fn query_serde<'life0, 'life1, 'life2, 'async_trait, T>( &'life0 self, query: &'life1 str, args: &'life2 (impl 'async_trait + QueryArgs), ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>
where T: DeserializeOwned + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

fn query_single_serde<'life0, 'life1, 'life2, 'async_trait, T>( &'life0 self, query: &'life1 str, args: &'life2 (impl 'async_trait + QueryArgs), ) -> Pin<Box<dyn Future<Output = Result<Option<T>, Error>> + Send + 'async_trait>>
where T: DeserializeOwned + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§