pub struct ProjectQuota {
pub name: String,
pub max_instances: Option<i64>,
pub max_vcpu: Option<i64>,
pub max_volume_gib: Option<i64>,
pub max_vpcs: Option<i64>,
pub max_public_ips: Option<i64>,
pub usage: Option<QuotaUsage>,
}Expand description
A project’s quota: the budgets its owners set for it, and how much of each the project uses. A project without a budget for a kind of resource is bounded by its organization’s quota alone; with one, by both. Budgets are not reservations: several projects’ budgets may add up to more than the organization’s limit.
Fields§
§name: StringThe quota’s resource name, projects/{project}/quota.
max_instances: Option<i64>The most instances that aren’t terminated; unset means no budget. Each budget is zero or more, and no more than the organization’s limit for the same kind.
max_vcpu: Option<i64>The most vCPUs, summed over the instances that aren’t terminated; unset means no budget.
max_volume_gib: Option<i64>The most GiB of volumes that aren’t deleted; unset means no budget.
max_vpcs: Option<i64>The most VPCs; unset means no budget.
max_public_ips: Option<i64>The most floating IPs; unset means no budget.
usage: Option<QuotaUsage>How much of each budget the project uses.
Implementations§
Source§impl ProjectQuota
impl ProjectQuota
Sourcepub fn max_instances(&self) -> i64
pub fn max_instances(&self) -> i64
Returns the value of max_instances, or the default value if max_instances is unset.
Sourcepub fn max_vcpu(&self) -> i64
pub fn max_vcpu(&self) -> i64
Returns the value of max_vcpu, or the default value if max_vcpu is unset.
Sourcepub fn max_volume_gib(&self) -> i64
pub fn max_volume_gib(&self) -> i64
Returns the value of max_volume_gib, or the default value if max_volume_gib is unset.
Sourcepub fn max_vpcs(&self) -> i64
pub fn max_vpcs(&self) -> i64
Returns the value of max_vpcs, or the default value if max_vpcs is unset.
Sourcepub fn max_public_ips(&self) -> i64
pub fn max_public_ips(&self) -> i64
Returns the value of max_public_ips, or the default value if max_public_ips is unset.
Trait Implementations§
Source§impl Clone for ProjectQuota
impl Clone for ProjectQuota
Source§impl Debug for ProjectQuota
impl Debug for ProjectQuota
Source§impl Default for ProjectQuota
impl Default for ProjectQuota
Source§impl<'de> Deserialize<'de> for ProjectQuota
impl<'de> Deserialize<'de> for ProjectQuota
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>,
impl Eq for ProjectQuota
Source§impl Hash for ProjectQuota
impl Hash for ProjectQuota
Source§impl Message for ProjectQuota
impl Message for ProjectQuota
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for ProjectQuota
impl PartialEq for ProjectQuota
Source§impl Serialize for ProjectQuota
impl Serialize for ProjectQuota
impl StructuralPartialEq for ProjectQuota
Auto Trait Implementations§
impl Freeze for ProjectQuota
impl RefUnwindSafe for ProjectQuota
impl Send for ProjectQuota
impl Sync for ProjectQuota
impl Unpin for ProjectQuota
impl UnsafeUnpin for ProjectQuota
impl UnwindSafe for ProjectQuota
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.