pub struct OrganizationQuota {
pub name: String,
pub max_instances: i64,
pub max_vcpu: i64,
pub max_volume_gib: i64,
pub max_vpcs: i64,
pub max_public_ips: i64,
pub usage: Option<QuotaUsage>,
}Expand description
An organization’s quota: the most of each kind of resource its projects may hold together, and how much of it they use. Creating a resource past a limit is refused.
Fields§
§name: StringThe quota’s resource name, organizations/{organization}/quota.
max_instances: i64The most instances that aren’t terminated.
max_vcpu: i64The most vCPUs, summed over the instances that aren’t terminated.
max_volume_gib: i64The most GiB of volumes that aren’t deleted.
max_vpcs: i64The most VPCs.
max_public_ips: i64The most floating IPs.
usage: Option<QuotaUsage>How much of each limit the organization’s projects use together.
Trait Implementations§
Source§impl Clone for OrganizationQuota
impl Clone for OrganizationQuota
Source§impl Debug for OrganizationQuota
impl Debug for OrganizationQuota
Source§impl Default for OrganizationQuota
impl Default for OrganizationQuota
Source§impl<'de> Deserialize<'de> for OrganizationQuota
impl<'de> Deserialize<'de> for OrganizationQuota
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 Eq for OrganizationQuota
Source§impl Hash for OrganizationQuota
impl Hash for OrganizationQuota
Source§impl Message for OrganizationQuota
impl Message for OrganizationQuota
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for OrganizationQuota
impl PartialEq for OrganizationQuota
Source§impl Serialize for OrganizationQuota
impl Serialize for OrganizationQuota
impl StructuralPartialEq for OrganizationQuota
Auto Trait Implementations§
impl Freeze for OrganizationQuota
impl RefUnwindSafe for OrganizationQuota
impl Send for OrganizationQuota
impl Sync for OrganizationQuota
impl Unpin for OrganizationQuota
impl UnsafeUnpin for OrganizationQuota
impl UnwindSafe for OrganizationQuota
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
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
Compare self to
key and return true if they are equal.