pub struct LicenseView {Show 17 fields
pub id: String,
pub activation_id: String,
pub trial: bool,
pub method: ActivationMethod,
pub licensed_product: Product,
pub issued_to: User,
pub issued_at: SystemTime,
pub expires_at: Option<SystemTime>,
pub validated_at: SystemTime,
pub owned_sub_product_ids: Vec<String>,
pub sub_products: Vec<SubProduct>,
pub subscription_id: Option<String>,
pub seat_count: Option<i64>,
pub seats_used: Option<i64>,
pub release_access: Option<ReleaseAccess>,
pub properties: Value,
pub days_remaining: Option<u64>,
}Expand description
A license as the frontend sees it: everything the SDK’s License carries but
the raw token, which the webview has no use for and is better off never
holding, plus days_remaining. Serializes as the SDK’s license JSON does.
Fields§
§id: String§activation_id: String§trial: bool§method: ActivationMethod§licensed_product: Product§issued_to: User§issued_at: SystemTime§expires_at: Option<SystemTime>§validated_at: SystemTime§owned_sub_product_ids: Vec<String>§sub_products: Vec<SubProduct>§subscription_id: Option<String>§seat_count: Option<i64>§seats_used: Option<i64>§release_access: Option<ReleaseAccess>§properties: Value§days_remaining: Option<u64>Whole days until expires_at, rounded up, and 0 once it has passed. None
when the license never expires.
Trait Implementations§
Source§impl Clone for LicenseView
impl Clone for LicenseView
Source§impl Debug for LicenseView
impl Debug for LicenseView
Source§impl From<&License> for LicenseView
impl From<&License> for LicenseView
Source§impl PartialEq for LicenseView
impl PartialEq for LicenseView
Source§impl Serialize for LicenseView
impl Serialize for LicenseView
impl StructuralPartialEq for LicenseView
Auto Trait Implementations§
impl Freeze for LicenseView
impl RefUnwindSafe for LicenseView
impl Send for LicenseView
impl Sync for LicenseView
impl Unpin for LicenseView
impl UnsafeUnpin for LicenseView
impl UnwindSafe for LicenseView
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