pub trait CanEncodeToken: Send + Sync {
// Required method
fn encode<'a, CLAIMS: Debug + Serialize + Deserialize<'a>>(
&self,
claims: CLAIMS,
) -> String;
}
Required Methods§
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.