pub struct QuotaSpec {
pub description: String,
pub limits: Vec<QuotaLimit>,
pub create_index: u64,
pub modify_index: u64,
pub name: String,
}
Expand description
QuotaSpec specifies the allowed resource usage across regions.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§description: String
Description is an optional description for the quota object
limits: Vec<QuotaLimit>
Limits is the set of quota limits encapsulated by this quota object. Each limit applies quota in a particular region and in the future over a particular priority range and datacenter set.
create_index: u64
Raft indexes to track creation and modification
modify_index: u64
§name: String
Name is the name for the quota object
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for QuotaSpec
impl<'de> Deserialize<'de> for QuotaSpec
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 QuotaSpec
Auto Trait Implementations§
impl Freeze for QuotaSpec
impl RefUnwindSafe for QuotaSpec
impl Send for QuotaSpec
impl Sync for QuotaSpec
impl Unpin for QuotaSpec
impl UnwindSafe for QuotaSpec
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