pub struct LicenseActivationConfig {
pub vendor_id: String,
pub product_id: String,
pub jwt_pubkey: String,
pub cached_token_path: PathBuf,
pub device_name: String,
pub device_signature: String,
pub online_token_refresh_threshold: Duration,
pub online_token_expiration_threshold: Duration,
}Expand description
Configuration options for the LicenseActivator.
Fields§
§vendor_id: StringThe Moonbase vendor id for the store. Used to determine the API endpoint, i.e. https://{vendor_id}.moonbase.sh
product_id: StringThe Moonbase product id that a license needs to be valid for.
jwt_pubkey: StringThe public key to verify the signed JWT payload.
cached_token_path: PathBufThe path where the cached license token payload is stored on disk.
device_name: StringUser-friendly display name of the device the software is running on. Reported to Moonbase when activating a license.
device_signature: StringThe unique signature of the device the software is running on.
online_token_refresh_threshold: DurationThe age threshold beyond which the activator attempts to refresh online tokens. Before this age, the token is accepted without attempting any further online validation.
online_token_expiration_threshold: DurationThe age threshold beyond which an online token is deemed too old to trust and must be refreshed before being accepted.
Trait Implementations§
Source§impl Clone for LicenseActivationConfig
impl Clone for LicenseActivationConfig
Source§fn clone(&self) -> LicenseActivationConfig
fn clone(&self) -> LicenseActivationConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more