pub struct LicenseError {
pub code: LicenseErrorCode,
pub message: String,
pub status: Option<u16>,
pub latest_allowed_version: LatestAllowedVersion,
}Expand description
A failed license validation. Branch on code, never on
message.
Fields§
§code: LicenseErrorCodeWhat went wrong.
message: StringHuman-readable description, for logs.
status: Option<u16>HTTP status, when the server answered.
latest_allowed_version: LatestAllowedVersionFor version_not_allowed: latest version the license allows.
Implementations§
Source§impl LicenseError
impl LicenseError
Sourcepub fn is_locking(&self) -> bool
pub fn is_locking(&self) -> bool
True when the license itself was refused (the app should lock).
Trait Implementations§
Source§impl Clone for LicenseError
impl Clone for LicenseError
Source§impl Debug for LicenseError
impl Debug for LicenseError
Source§impl Display for LicenseError
impl Display for LicenseError
impl Eq for LicenseError
Source§impl Error for LicenseError
impl Error for LicenseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<LicenseError> for LicenseErrorDto
impl From<LicenseError> for LicenseErrorDto
Source§fn from(error: LicenseError) -> Self
fn from(error: LicenseError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LicenseError
impl PartialEq for LicenseError
impl StructuralPartialEq for LicenseError
Auto Trait Implementations§
impl Freeze for LicenseError
impl RefUnwindSafe for LicenseError
impl Send for LicenseError
impl Sync for LicenseError
impl Unpin for LicenseError
impl UnsafeUnpin for LicenseError
impl UnwindSafe for LicenseError
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<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.