pub struct License {Show 16 fields
pub key: Option<String>,
pub license: Option<String>,
pub type_: Option<String>,
pub expired: bool,
pub activation_date: Option<String>,
pub expiration_date: Option<String>,
pub cluster_name: Option<String>,
pub owner: Option<String>,
pub shards_limit: Option<u32>,
pub ram_shards_in_use: Option<u32>,
pub ram_shards_limit: Option<u32>,
pub flash_shards_in_use: Option<u32>,
pub flash_shards_limit: Option<u32>,
pub node_limit: Option<u32>,
pub features: Option<Vec<String>>,
pub extra: Value,
}
Expand description
License information
Fields§
§key: Option<String>
License key - the actual field name returned by API
license: Option<String>
License string
type_: Option<String>
License type (trial, commercial, etc.)
expired: bool
Mark license expired or not
activation_date: Option<String>
License activation date
expiration_date: Option<String>
License expiration date
cluster_name: Option<String>
The cluster name as appears in the license
owner: Option<String>
Owner of license
shards_limit: Option<u32>
Shards limit
ram_shards_in_use: Option<u32>
Amount of RAM shards in use
ram_shards_limit: Option<u32>
Amount of RAM shards allowed
flash_shards_in_use: Option<u32>
Amount of flash shards in use
flash_shards_limit: Option<u32>
Amount of flash shards allowed
node_limit: Option<u32>
Node limit (deprecated in favor of shards_limit)
features: Option<Vec<String>>
List of features supported by license
extra: Value
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
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