pub struct LicenseInfo {
pub is_valid: bool,
pub issued_at: DateTime<Utc>,
pub expires_at: DateTime<Utc>,
pub hours_remaining: f64,
}Expand description
Information about a validated license
Fields§
§is_valid: boolWhether the license is currently valid
issued_at: DateTime<Utc>When the license was issued
expires_at: DateTime<Utc>When the license expires
hours_remaining: f64Hours remaining until expiration (0 if expired)
Trait Implementations§
Source§impl Clone for LicenseInfo
impl Clone for LicenseInfo
Source§fn clone(&self) -> LicenseInfo
fn clone(&self) -> LicenseInfo
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 moreAuto Trait Implementations§
impl Freeze for LicenseInfo
impl RefUnwindSafe for LicenseInfo
impl Send for LicenseInfo
impl Sync for LicenseInfo
impl Unpin for LicenseInfo
impl UnsafeUnpin for LicenseInfo
impl UnwindSafe for LicenseInfo
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