Trait actix_jwt_session::Claims
source · pub trait Claims: PartialEq + DeserializeOwned + Serialize + Clone + Send + Sync + Debug + 'static {
// Required methods
fn jti(&self) -> Uuid;
fn subject(&self) -> &str;
}Expand description
Serializable and storable struct which represent JWT claims
- It must have JWT ID as uuid::Uuid
- It must have subject as a String