pub struct LicenseClaims {
pub issuer: String,
pub subject: String,
pub audience: String,
pub issued_at: Option<DateTime<Utc>>,
pub expires_at: Option<DateTime<Utc>>,
pub not_before: Option<DateTime<Utc>>,
pub tenant_id: String,
pub plan: String,
pub features: Vec<String>,
pub limits: Value,
pub grace_period_hours: i64,
}Expand description
Parsed claims from a license JWT
Fields§
§issuer: StringIssuer (iss)
subject: StringSubject/tenant_id (sub)
audience: StringAudience (aud)
issued_at: Option<DateTime<Utc>>Issued at (iat)
expires_at: Option<DateTime<Utc>>Expires at (exp)
not_before: Option<DateTime<Utc>>Not before (nbf)
tenant_id: StringTenant ID (from sub or tenant_id claim)
plan: StringLicense plan (free, professional, enterprise)
features: Vec<String>Enabled features
limits: ValueUsage limits
grace_period_hours: i64Grace period in hours
Trait Implementations§
Source§impl Clone for LicenseClaims
impl Clone for LicenseClaims
Source§fn clone(&self) -> LicenseClaims
fn clone(&self) -> LicenseClaims
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LicenseClaims
impl Debug for LicenseClaims
Source§impl Default for LicenseClaims
impl Default for LicenseClaims
Source§fn default() -> LicenseClaims
fn default() -> LicenseClaims
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LicenseClaims
impl<'de> Deserialize<'de> for LicenseClaims
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LicenseClaims
impl RefUnwindSafe for LicenseClaims
impl Send for LicenseClaims
impl Sync for LicenseClaims
impl Unpin for LicenseClaims
impl UnwindSafe for LicenseClaims
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more