pub enum LicenseStatus {
Valid,
GracePeriod,
Expired,
Invalid,
DevMode,
Unlicensed,
}Expand description
Status of the license validation
Variants§
Valid
License is valid and active
GracePeriod
License is expired but within grace period
Expired
License has expired (past grace period)
Invalid
License is invalid (bad signature, format, etc.)
DevMode
Running in development mode (no license required)
Unlicensed
No license token provided
Implementations§
Source§impl LicenseStatus
impl LicenseStatus
Sourcepub fn allows_operation(&self) -> bool
pub fn allows_operation(&self) -> bool
Check if license allows operation (valid, grace period, or dev mode)
Sourcepub fn should_quarantine(&self) -> bool
pub fn should_quarantine(&self) -> bool
Check if events should be quarantined
Trait Implementations§
Source§impl Clone for LicenseStatus
impl Clone for LicenseStatus
Source§fn clone(&self) -> LicenseStatus
fn clone(&self) -> LicenseStatus
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 LicenseStatus
impl Debug for LicenseStatus
Source§impl Default for LicenseStatus
impl Default for LicenseStatus
Source§fn default() -> LicenseStatus
fn default() -> LicenseStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LicenseStatus
impl<'de> Deserialize<'de> for LicenseStatus
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
Source§impl PartialEq for LicenseStatus
impl PartialEq for LicenseStatus
Source§impl Serialize for LicenseStatus
impl Serialize for LicenseStatus
impl Copy for LicenseStatus
impl Eq for LicenseStatus
impl StructuralPartialEq for LicenseStatus
Auto Trait Implementations§
impl Freeze for LicenseStatus
impl RefUnwindSafe for LicenseStatus
impl Send for LicenseStatus
impl Sync for LicenseStatus
impl Unpin for LicenseStatus
impl UnwindSafe for LicenseStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.