Struct google_container1::api::ResourceLimit
source · pub struct ResourceLimit {
pub maximum: Option<i64>,
pub minimum: Option<i64>,
pub resource_type: Option<String>,
}
Expand description
Contains information about amount of some resource in the cluster. For memory, value should be in GB.
This type is not used in any activity, and only used as part of another schema.
Fields§
§maximum: Option<i64>
Maximum amount of the resource in the cluster.
minimum: Option<i64>
Minimum amount of the resource in the cluster.
resource_type: Option<String>
Resource name “cpu”, “memory” or gpu-specific string.
Trait Implementations§
source§impl Clone for ResourceLimit
impl Clone for ResourceLimit
source§fn clone(&self) -> ResourceLimit
fn clone(&self) -> ResourceLimit
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 ResourceLimit
impl Debug for ResourceLimit
source§impl Default for ResourceLimit
impl Default for ResourceLimit
source§fn default() -> ResourceLimit
fn default() -> ResourceLimit
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ResourceLimit
impl<'de> Deserialize<'de> for ResourceLimit
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 Serialize for ResourceLimit
impl Serialize for ResourceLimit
impl Part for ResourceLimit
Auto Trait Implementations§
impl RefUnwindSafe for ResourceLimit
impl Send for ResourceLimit
impl Sync for ResourceLimit
impl Unpin for ResourceLimit
impl UnwindSafe for ResourceLimit
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