pub enum ValidationFailureType {
InvalidSignature,
Expired,
NotYetValid,
UnsupportedVersion,
FeatureConstraint,
HostnameConstraint,
MachineIdConstraint,
VersionConstraint,
ConnectionLimit,
MalformedLicense,
CustomConstraint,
}Expand description
Categorizes the type of validation failure.
This enum helps applications handle different failure types appropriately, for example, showing different messages for expired vs. invalid licenses.
Variants§
InvalidSignature
The cryptographic signature is invalid.
Expired
The license has expired.
NotYetValid
The license is not yet valid.
UnsupportedVersion
The license version is not supported.
FeatureConstraint
A feature constraint was not satisfied.
HostnameConstraint
A hostname constraint was not satisfied.
MachineIdConstraint
A machine identifier constraint was not satisfied.
VersionConstraint
A software version constraint was not satisfied.
ConnectionLimit
A connection limit was exceeded.
MalformedLicense
The license format is malformed.
CustomConstraint
A custom constraint was not satisfied.
Trait Implementations§
Source§impl Clone for ValidationFailureType
impl Clone for ValidationFailureType
Source§fn clone(&self) -> ValidationFailureType
fn clone(&self) -> ValidationFailureType
Returns a duplicate 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 ValidationFailureType
impl Debug for ValidationFailureType
Source§impl Display for ValidationFailureType
impl Display for ValidationFailureType
Source§impl PartialEq for ValidationFailureType
impl PartialEq for ValidationFailureType
impl Copy for ValidationFailureType
impl Eq for ValidationFailureType
impl StructuralPartialEq for ValidationFailureType
Auto Trait Implementations§
impl Freeze for ValidationFailureType
impl RefUnwindSafe for ValidationFailureType
impl Send for ValidationFailureType
impl Sync for ValidationFailureType
impl Unpin for ValidationFailureType
impl UnwindSafe for ValidationFailureType
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