framework_cqrs_lib::cqrs::core::token

Trait TokenService

Source
pub trait TokenService {
    // Required method
    fn decode<'life0, 'life1, 'async_trait, CLAIMS>(
        &'life0 self,
        token: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = ResultErr<CLAIMS>> + Send + 'async_trait>>
       where CLAIMS: 'async_trait + Debug + Serialize + DeserializeOwned,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn decode<'life0, 'life1, 'async_trait, CLAIMS>( &'life0 self, token: &'life1 str, ) -> Pin<Box<dyn Future<Output = ResultErr<CLAIMS>> + Send + 'async_trait>>
where CLAIMS: 'async_trait + Debug + Serialize + DeserializeOwned, Self: 'async_trait, 'life0: 'async_trait, 'life1: '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.

Implementors§