pub struct License {
pub issue_time: DateTime<Utc>,
pub product: String,
pub modules: Vec<String>,
pub license_id: String,
pub customer_id: String,
pub installation_id: String,
pub start_time: DateTime<Utc>,
pub expiration_time: DateTime<Utc>,
pub termination_time: DateTime<Utc>,
pub flags: HashMap<String, Value>,
pub features: Vec<String>,
}
Expand description
This struct was generated based on the Go types of the official Nomad API.
Fields§
§issue_time: DateTime<Utc>
The time at which the license was issued
product: String
The product the license is valid for
modules: Vec<String>
Modules is a list of the licensed enterprise modules
license_id: String
The unique identifier of the license
customer_id: String
The customer ID associated with the license
installation_id: String
If set, an identifier that should be used to lock the license to a particular site, cluster, etc.
start_time: DateTime<Utc>
The time at which the license starts being valid
expiration_time: DateTime<Utc>
The time after which the license expires
termination_time: DateTime<Utc>
The time at which the license ceases to function and can no longer be used in any capacity
flags: HashMap<String, Value>
License Specific Flags
features: Vec<String>
List of features enabled by the license
Trait Implementations§
Source§impl<'de> Deserialize<'de> for License
impl<'de> Deserialize<'de> for License
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 StructuralPartialEq for License
Auto Trait Implementations§
impl Freeze for License
impl RefUnwindSafe for License
impl Send for License
impl Sync for License
impl Unpin for License
impl UnwindSafe for License
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