[][src]Struct cryptolens::LicenseKey

pub struct LicenseKey {
    pub ProductId: u64,
    pub Id: Option<u64>,
    pub Key: Option<String>,
    pub Created: u64,
    pub Expires: u64,
    pub Period: u64,
    pub F1: bool,
    pub F2: bool,
    pub F3: bool,
    pub F4: bool,
    pub F5: bool,
    pub F6: bool,
    pub F7: bool,
    pub F8: bool,
    pub Notes: Option<String>,
    pub Block: bool,
    pub GlobalId: Option<u64>,
    pub Customer: Option<Customer>,
    pub ActivatedMachines: Vec<ActivationData>,
    pub TrialActivation: bool,
    pub MaxNoOfMachines: Option<u64>,
    pub AllowedMachines: Vec<String>,
    pub DataObjects: Vec<DataObject>,
    pub SignDate: u64,
    // some fields omitted
}

Fields

ProductId: u64Id: Option<u64>Key: Option<String>Created: u64Expires: u64Period: u64F1: boolF2: boolF3: boolF4: boolF5: boolF6: boolF7: boolF8: boolNotes: Option<String>Block: boolGlobalId: Option<u64>Customer: Option<Customer>ActivatedMachines: Vec<ActivationData>TrialActivation: boolMaxNoOfMachines: Option<u64>AllowedMachines: Vec<String>DataObjects: Vec<DataObject>SignDate: u64

Methods

impl LicenseKey[src]

impl LicenseKey[src]

pub fn has_valid_signature(&self, public_key: &str) -> Result<bool, ()>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err