Struct k8s_openapi::api::resource::v1alpha2::NamedResourcesInstance
source · pub struct NamedResourcesInstance {
pub attributes: Option<Vec<NamedResourcesAttribute>>,
pub name: String,
}
Expand description
NamedResourcesInstance represents one individual hardware instance that can be selected based on its attributes.
Fields§
§attributes: Option<Vec<NamedResourcesAttribute>>
Attributes defines the attributes of this resource instance. The name of each attribute must be unique.
name: String
Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain.
Trait Implementations§
source§impl Clone for NamedResourcesInstance
impl Clone for NamedResourcesInstance
source§fn clone(&self) -> NamedResourcesInstance
fn clone(&self) -> NamedResourcesInstance
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 NamedResourcesInstance
impl Debug for NamedResourcesInstance
source§impl DeepMerge for NamedResourcesInstance
impl DeepMerge for NamedResourcesInstance
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for NamedResourcesInstance
impl Default for NamedResourcesInstance
source§fn default() -> NamedResourcesInstance
fn default() -> NamedResourcesInstance
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NamedResourcesInstance
impl<'de> Deserialize<'de> for NamedResourcesInstance
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 NamedResourcesInstance
impl PartialEq for NamedResourcesInstance
source§fn eq(&self, other: &NamedResourcesInstance) -> bool
fn eq(&self, other: &NamedResourcesInstance) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NamedResourcesInstance
impl Serialize for NamedResourcesInstance
impl StructuralPartialEq for NamedResourcesInstance
Auto Trait Implementations§
impl Freeze for NamedResourcesInstance
impl RefUnwindSafe for NamedResourcesInstance
impl Send for NamedResourcesInstance
impl Sync for NamedResourcesInstance
impl Unpin for NamedResourcesInstance
impl UnwindSafe for NamedResourcesInstance
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