pub struct LicenseTokenClaims {
pub method: ActivationMethod,
pub product_latest_version: Option<String>,
pub user_name: String,
pub device_signature: String,
pub last_validated: DateTime<Utc>,
pub expires_at: Option<DateTime<Utc>>,
pub trial: bool,
}Expand description
The claims included in a validated license token provided by Moonbase.
Fields§
§method: ActivationMethod§product_latest_version: Option<String>The latest release version of the product, if any.
user_name: StringThe name of the user that owns this license.
device_signature: StringThe signature of the device being activated. Should be checked against the user’s device signature.
last_validated: DateTime<Utc>The date and time at which the license token was last validated online.
expires_at: Option<DateTime<Utc>>The date and time at which the license expires.
trial: boolWhether this license token represents a time-limited trial (true), or an owned license (false).
Trait Implementations§
Source§impl Debug for LicenseTokenClaims
impl Debug for LicenseTokenClaims
Source§impl<'de> Deserialize<'de> for LicenseTokenClaims
impl<'de> Deserialize<'de> for LicenseTokenClaims
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 LicenseTokenClaims
impl RefUnwindSafe for LicenseTokenClaims
impl Send for LicenseTokenClaims
impl Sync for LicenseTokenClaims
impl Unpin for LicenseTokenClaims
impl UnsafeUnpin for LicenseTokenClaims
impl UnwindSafe for LicenseTokenClaims
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