pub struct QuotaLimit {
pub hash: Vec<u8>,
pub region: String,
pub region_limit: Option<Resources>,
pub variables_limit: Option<i64>,
}
Expand description
QuotaLimit describes the resource limit in a particular region.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§hash: Vec<u8>
Hash is the hash of the object and is used to make replication efficient.
region: String
Region is the region in which this limit has affect
region_limit: Option<Resources>
RegionLimit is the quota limit that applies to any allocation within a referencing namespace in the region. A value of zero is treated as unlimited and a negative value is treated as fully disallowed. This is useful for once we support GPUs
variables_limit: Option<i64>
VariablesLimit is the maximum total size of all variables Variable.EncryptedData. A value of zero is treated as unlimited and a negative value is treated as fully disallowed.
Implementations§
Source§impl QuotaLimit
impl QuotaLimit
pub fn builder() -> QuotaLimitBuilder
Trait Implementations§
Source§impl Clone for QuotaLimit
impl Clone for QuotaLimit
Source§fn clone(&self) -> QuotaLimit
fn clone(&self) -> QuotaLimit
Returns a copy 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 QuotaLimit
impl Debug for QuotaLimit
Source§impl<'de> Deserialize<'de> for QuotaLimit
impl<'de> Deserialize<'de> for QuotaLimit
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 PartialEq for QuotaLimit
impl PartialEq for QuotaLimit
Source§impl Serialize for QuotaLimit
impl Serialize for QuotaLimit
impl StructuralPartialEq for QuotaLimit
Auto Trait Implementations§
impl Freeze for QuotaLimit
impl RefUnwindSafe for QuotaLimit
impl Send for QuotaLimit
impl Sync for QuotaLimit
impl Unpin for QuotaLimit
impl UnwindSafe for QuotaLimit
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