pub enum RejectReason {
Format {
detail: String,
},
UnknownKey {
kid: String,
},
Signature,
Product {
expected: String,
found: String,
},
Variant {
expected: Option<String>,
found: String,
},
NoBinding,
HardwareMismatch {
missing: Vec<Binding>,
},
NotYetValid {
not_before: DateTime<Utc>,
},
Expired {
not_after: DateTime<Utc>,
},
ClockRolledBack {
mark: DateTime<Utc>,
},
Duplicate,
}Expand description
Why a licence does not count.
Variants§
Format
Not decodable (prefix, encoding, incomplete, payload, version).
UnknownKey
Signature
Product
Variant
NoBinding
HardwareMismatch
Bindings not present on this machine.
NotYetValid
Expired
ClockRolledBack
Time-limited licence while the clock is behind its mark.
Duplicate
The same licence id was already counted: installing a licence twice must not double its quotas.
Trait Implementations§
Source§impl Clone for RejectReason
impl Clone for RejectReason
Source§fn clone(&self) -> RejectReason
fn clone(&self) -> RejectReason
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 RejectReason
impl Debug for RejectReason
Source§impl From<LicenceError> for RejectReason
impl From<LicenceError> for RejectReason
Source§fn from(error: LicenceError) -> Self
fn from(error: LicenceError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RejectReason
impl PartialEq for RejectReason
Source§impl Serialize for RejectReason
impl Serialize for RejectReason
impl Eq for RejectReason
impl StructuralPartialEq for RejectReason
Auto Trait Implementations§
impl Freeze for RejectReason
impl RefUnwindSafe for RejectReason
impl Send for RejectReason
impl Sync for RejectReason
impl Unpin for RejectReason
impl UnwindSafe for RejectReason
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