pub struct LicencePayload {Show 13 fields
pub v: u32,
pub id: String,
pub kid: String,
pub product: String,
pub variant: Option<String>,
pub licensee: Licensee,
pub bind: Vec<Binding>,
pub not_before: Option<DateTime<Utc>>,
pub not_after: Option<DateTime<Utc>>,
pub features: Vec<String>,
pub quotas: BTreeMap<String, u64>,
pub issued_at: DateTime<Utc>,
pub note: Option<String>,
}Expand description
The signed content of a licence.
Unknown fields are rejected: a newer issuer that adds a restriction must bump
FORMAT_VERSION, so an older verifier refuses loudly instead of ignoring it.
Fields§
§v: u32§id: StringLicence id (UUID, issued by the FleetManager).
kid: StringId of the signing key (key_id).
product: StringProduct the licence is for (each product checks its own name).
variant: Option<String>Product variant (e.g. a branding stream); None = any.
licensee: Licensee§bind: Vec<Binding>Hardware bindings; all must be present on the machine.
not_before: Option<DateTime<Utc>>§not_after: Option<DateTime<Utc>>End of validity; None = lifetime.
features: Vec<String>Product-defined feature names (additive across licences).
quotas: BTreeMap<String, u64>Product-defined quotas (summed across licences).
issued_at: DateTime<Utc>§note: Option<String>Trait Implementations§
Source§impl Clone for LicencePayload
impl Clone for LicencePayload
Source§fn clone(&self) -> LicencePayload
fn clone(&self) -> LicencePayload
Returns a copy 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 LicencePayload
impl Debug for LicencePayload
Source§impl<'de> Deserialize<'de> for LicencePayload
impl<'de> Deserialize<'de> for LicencePayload
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 LicencePayload
impl PartialEq for LicencePayload
Source§impl Serialize for LicencePayload
impl Serialize for LicencePayload
impl Eq for LicencePayload
impl StructuralPartialEq for LicencePayload
Auto Trait Implementations§
impl Freeze for LicencePayload
impl RefUnwindSafe for LicencePayload
impl Send for LicencePayload
impl Sync for LicencePayload
impl Unpin for LicencePayload
impl UnwindSafe for LicencePayload
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