Struct k8s_openapi::api::core::v1::ResourceFieldSelector
source · pub struct ResourceFieldSelector {
pub container_name: Option<String>,
pub divisor: Option<Quantity>,
pub resource: String,
}
Expand description
ResourceFieldSelector represents container resources (cpu, memory) and their output format
Fields§
§container_name: Option<String>
Container name: required for volumes, optional for env vars
divisor: Option<Quantity>
Specifies the output format of the exposed resources, defaults to “1”
resource: String
Required: resource to select
Trait Implementations§
source§impl Clone for ResourceFieldSelector
impl Clone for ResourceFieldSelector
source§fn clone(&self) -> ResourceFieldSelector
fn clone(&self) -> ResourceFieldSelector
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 ResourceFieldSelector
impl Debug for ResourceFieldSelector
source§impl DeepMerge for ResourceFieldSelector
impl DeepMerge for ResourceFieldSelector
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for ResourceFieldSelector
impl Default for ResourceFieldSelector
source§fn default() -> ResourceFieldSelector
fn default() -> ResourceFieldSelector
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ResourceFieldSelector
impl<'de> Deserialize<'de> for ResourceFieldSelector
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<ResourceFieldSelector> for ResourceFieldSelector
impl PartialEq<ResourceFieldSelector> for ResourceFieldSelector
source§fn eq(&self, other: &ResourceFieldSelector) -> bool
fn eq(&self, other: &ResourceFieldSelector) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ResourceFieldSelector
impl Serialize for ResourceFieldSelector
impl StructuralPartialEq for ResourceFieldSelector
Auto Trait Implementations§
impl RefUnwindSafe for ResourceFieldSelector
impl Send for ResourceFieldSelector
impl Sync for ResourceFieldSelector
impl Unpin for ResourceFieldSelector
impl UnwindSafe for ResourceFieldSelector
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