pub struct LicenseState {Show 13 fields
pub status: Status,
pub licensed: bool,
pub license: Option<LicenseView>,
pub expired_trial: Option<LicenseView>,
pub not_covered: Option<NotCovered>,
pub lock_reason: Option<LockReason>,
pub activation: Option<PendingActivation>,
pub busy: bool,
pub refreshing: bool,
pub error: Option<Failure>,
pub update: Option<UpdateHint>,
pub active_sub_products: Vec<String>,
pub add_ons: AddOnsState,
}Expand description
A snapshot of everything the UI needs, sent with every moonbase://state-changed
event and returned by every command that changes it.
Fields§
§status: Status§licensed: boolIs there a valid license right now? Gate features on this.
license: Option<LicenseView>The license in force.
expired_trial: Option<LicenseView>The trial that ended, with Status::TrialExpired.
not_covered: Option<NotCovered>§lock_reason: Option<LockReason>§activation: Option<PendingActivation>§busy: boolA deactivation is in flight.
refreshing: boolA re-check of the license is waiting for Moonbase.
error: Option<Failure>§update: Option<UpdateHint>§active_sub_products: Vec<String>The add-ons to unlock on this device right now, by their own part of their product ID: the license lists them as active and they haven’t expired.
add_ons: AddOnsStateTrait Implementations§
Source§impl Clone for LicenseState
impl Clone for LicenseState
Source§impl Debug for LicenseState
impl Debug for LicenseState
Source§impl PartialEq for LicenseState
impl PartialEq for LicenseState
Source§impl Serialize for LicenseState
impl Serialize for LicenseState
impl StructuralPartialEq for LicenseState
Auto Trait Implementations§
impl Freeze for LicenseState
impl RefUnwindSafe for LicenseState
impl Send for LicenseState
impl Sync for LicenseState
impl Unpin for LicenseState
impl UnsafeUnpin for LicenseState
impl UnwindSafe for LicenseState
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