pub struct LicenseErrorDto {
pub code: LicenseErrorCode,
pub message: String,
pub status: Option<u16>,
pub latest_allowed_version: Option<Option<String>>,
}Expand description
A LicenseError as JSON: { code, message, status?, latestAllowedVersion? }.
Fields§
§code: LicenseErrorCodeThe error code, e.g. "not_found".
message: StringHuman-readable description.
status: Option<u16>HTTP status, when the server answered.
latest_allowed_version: Option<Option<String>>For version_not_allowed: latest allowed version, or null.
Trait Implementations§
Source§impl Clone for LicenseErrorDto
impl Clone for LicenseErrorDto
Source§impl Debug for LicenseErrorDto
impl Debug for LicenseErrorDto
Source§impl<'de> Deserialize<'de> for LicenseErrorDto
impl<'de> Deserialize<'de> for LicenseErrorDto
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
impl Eq for LicenseErrorDto
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 LicenseErrorDto
impl PartialEq for LicenseErrorDto
Source§impl Serialize for LicenseErrorDto
impl Serialize for LicenseErrorDto
impl StructuralPartialEq for LicenseErrorDto
Auto Trait Implementations§
impl Freeze for LicenseErrorDto
impl RefUnwindSafe for LicenseErrorDto
impl Send for LicenseErrorDto
impl Sync for LicenseErrorDto
impl Unpin for LicenseErrorDto
impl UnsafeUnpin for LicenseErrorDto
impl UnwindSafe for LicenseErrorDto
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.