pub enum LicenseValidity {
Exists(LicenseInformation),
DoesNotExistOrNotConfirmed(String),
}
Expand description
LicenseValidity
JSON schema
{
"oneOf": [
{
"type": "object",
"required": [
"Exists"
],
"properties": {
"Exists": {
"$ref": "#/components/schemas/LicenseInformation"
}
}
},
{
"type": "object",
"required": [
"DoesNotExistOrNotConfirmed"
],
"properties": {
"DoesNotExistOrNotConfirmed": {
"description": "Either the license key is invalid according to the server, or the request that checks with\nthe server failed (e.g., if it could not reach the server).",
"type": "string"
}
}
}
]
}
Variants§
Exists(LicenseInformation)
DoesNotExistOrNotConfirmed(String)
Trait Implementations§
Source§impl Clone for LicenseValidity
impl Clone for LicenseValidity
Source§fn clone(&self) -> LicenseValidity
fn clone(&self) -> LicenseValidity
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 LicenseValidity
impl Debug for LicenseValidity
Source§impl<'de> Deserialize<'de> for LicenseValidity
impl<'de> Deserialize<'de> for LicenseValidity
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 From<&LicenseValidity> for LicenseValidity
impl From<&LicenseValidity> for LicenseValidity
Source§fn from(value: &LicenseValidity) -> Self
fn from(value: &LicenseValidity) -> Self
Converts to this type from the input type.
Source§impl From<LicenseInformation> for LicenseValidity
impl From<LicenseInformation> for LicenseValidity
Source§fn from(value: LicenseInformation) -> Self
fn from(value: LicenseInformation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LicenseValidity
impl RefUnwindSafe for LicenseValidity
impl Send for LicenseValidity
impl Sync for LicenseValidity
impl Unpin for LicenseValidity
impl UnwindSafe for LicenseValidity
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