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 for ResourceFieldSelector
impl PartialEq for ResourceFieldSelector
Source§impl Serialize for ResourceFieldSelector
impl Serialize for ResourceFieldSelector
impl StructuralPartialEq for ResourceFieldSelector
Auto Trait Implementations§
impl Freeze for ResourceFieldSelector
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