pub struct LicenseConfig {
pub account_id: String,
pub api_base: String,
pub grace_secs: u64,
pub storage: StorageConfig,
pub buy_url: String,
}Expand description
All the provider-agnostic knobs the licensing engine needs. account_id/api_base
identify the backend (Keygen today) and are passed through to construct the provider.
Fields§
§account_id: StringKeygen account id — a public UUID that ships in the binary.
api_base: StringProvider API base, e.g. https://api.keygen.sh/v1.
grace_secs: u64Offline grace window, in seconds (e.g. 14 days).
storage: StorageConfigWhere the license state is persisted.
buy_url: StringWhere “Buy” opens — the app’s checkout/pricing page.
Trait Implementations§
Source§impl Clone for LicenseConfig
impl Clone for LicenseConfig
Auto Trait Implementations§
impl Forget for LicenseConfig
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