pub enum LicenseErrorCode {
NotFound,
LicenseExpired,
VersionNotAllowed,
MachineLimitReached,
PlanLimitExceeded,
ValidationError,
InternalError,
NetworkError,
InvalidResponse,
}Expand description
Error codes returned by the validate-key endpoint, plus SDK-side codes for failures that never reached a definitive server answer.
Variants§
NotFound
The key does not exist for this product.
LicenseExpired
The license expiration date has passed.
VersionNotAllowed
The license doesn’t include this app version.
MachineLimitReached
The license is active on its maximum number of machines.
PlanLimitExceeded
The vendor’s plan limit was exceeded.
ValidationError
The request was refused as malformed (or the key was empty).
InternalError
The server failed.
NetworkError
Server unreachable, timed out, or answered with an unknown error.
InvalidResponse
Server answered 2xx but its token was missing or failed verification.
Implementations§
Trait Implementations§
Source§impl Clone for LicenseErrorCode
impl Clone for LicenseErrorCode
impl Copy for LicenseErrorCode
Source§impl Debug for LicenseErrorCode
impl Debug for LicenseErrorCode
Source§impl<'de> Deserialize<'de> for LicenseErrorCode
impl<'de> Deserialize<'de> for LicenseErrorCode
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 Display for LicenseErrorCode
impl Display for LicenseErrorCode
impl Eq for LicenseErrorCode
Source§impl Hash for LicenseErrorCode
impl Hash for LicenseErrorCode
Source§impl PartialEq for LicenseErrorCode
impl PartialEq for LicenseErrorCode
Source§impl Serialize for LicenseErrorCode
impl Serialize for LicenseErrorCode
impl StructuralPartialEq for LicenseErrorCode
Auto Trait Implementations§
impl Freeze for LicenseErrorCode
impl RefUnwindSafe for LicenseErrorCode
impl Send for LicenseErrorCode
impl Sync for LicenseErrorCode
impl Unpin for LicenseErrorCode
impl UnsafeUnpin for LicenseErrorCode
impl UnwindSafe for LicenseErrorCode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
Source§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.