framework_cqrs_lib::cqrs::core::token

Trait CanEncodeToken

Source
pub trait CanEncodeToken: Send + Sync {
    // Required method
    fn encode<'a, CLAIMS: Debug + Serialize + Deserialize<'a>>(
        &self,
        claims: CLAIMS,
    ) -> String;
}

Required Methods§

Source

fn encode<'a, CLAIMS: Debug + Serialize + Deserialize<'a>>( &self, claims: CLAIMS, ) -> String

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§