pub struct LicenseConfig {
pub path: String,
pub grace_days: u32,
pub revocation_check_hours: u64,
}Expand description
License validation configuration (Pro).
[license]
path = "~/.rdapify/activation.rdap"
grace_days = 7
revocation_check_hours = 24Fields§
§path: StringPath to the offline activation record. ~ is expanded to $HOME.
grace_days: u32Days the activation cache remains valid without re-checking. Range: 0–30.
revocation_check_hours: u64How often (hours) to check for license revocation.
Trait Implementations§
Source§impl Clone for LicenseConfig
impl Clone for LicenseConfig
Source§fn clone(&self) -> LicenseConfig
fn clone(&self) -> LicenseConfig
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 LicenseConfig
impl Debug for LicenseConfig
Source§impl Default for LicenseConfig
impl Default for LicenseConfig
Source§impl<'de> Deserialize<'de> for LicenseConfigwhere
LicenseConfig: Default,
impl<'de> Deserialize<'de> for LicenseConfigwhere
LicenseConfig: Default,
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 LicenseConfig
impl RefUnwindSafe for LicenseConfig
impl Send for LicenseConfig
impl Sync for LicenseConfig
impl Unpin for LicenseConfig
impl UnsafeUnpin for LicenseConfig
impl UnwindSafe for LicenseConfig
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