Struct k8s_openapi::api::resource::v1alpha2::NamedResourcesAttribute
source · pub struct NamedResourcesAttribute {
pub bool: Option<bool>,
pub int: Option<i64>,
pub int_slice: Option<NamedResourcesIntSlice>,
pub name: String,
pub quantity: Option<Quantity>,
pub string: Option<String>,
pub string_slice: Option<NamedResourcesStringSlice>,
pub version: Option<String>,
}
Expand description
NamedResourcesAttribute is a combination of an attribute name and its value.
Fields§
§bool: Option<bool>
BoolValue is a true/false value.
int: Option<i64>
IntValue is a 64-bit integer.
int_slice: Option<NamedResourcesIntSlice>
IntSliceValue is an array of 64-bit integers.
name: String
Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain.
quantity: Option<Quantity>
QuantityValue is a quantity.
string: Option<String>
StringValue is a string.
string_slice: Option<NamedResourcesStringSlice>
StringSliceValue is an array of strings.
version: Option<String>
VersionValue is a semantic version according to semver.org spec 2.0.0.
Trait Implementations§
source§impl Clone for NamedResourcesAttribute
impl Clone for NamedResourcesAttribute
source§fn clone(&self) -> NamedResourcesAttribute
fn clone(&self) -> NamedResourcesAttribute
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 NamedResourcesAttribute
impl Debug for NamedResourcesAttribute
source§impl DeepMerge for NamedResourcesAttribute
impl DeepMerge for NamedResourcesAttribute
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for NamedResourcesAttribute
impl Default for NamedResourcesAttribute
source§fn default() -> NamedResourcesAttribute
fn default() -> NamedResourcesAttribute
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NamedResourcesAttribute
impl<'de> Deserialize<'de> for NamedResourcesAttribute
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 NamedResourcesAttribute
impl PartialEq for NamedResourcesAttribute
source§fn eq(&self, other: &NamedResourcesAttribute) -> bool
fn eq(&self, other: &NamedResourcesAttribute) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NamedResourcesAttribute
impl Serialize for NamedResourcesAttribute
impl StructuralPartialEq for NamedResourcesAttribute
Auto Trait Implementations§
impl Freeze for NamedResourcesAttribute
impl RefUnwindSafe for NamedResourcesAttribute
impl Send for NamedResourcesAttribute
impl Sync for NamedResourcesAttribute
impl Unpin for NamedResourcesAttribute
impl UnwindSafe for NamedResourcesAttribute
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