Struct k8s_openapi::api::core::v1::PodResourceClaim
source · pub struct PodResourceClaim {
pub name: String,
pub source: Option<ClaimSource>,
}
Expand description
PodResourceClaim references exactly one ResourceClaim through a ClaimSource. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.
Fields§
§name: String
Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.
source: Option<ClaimSource>
Source describes where to find the ResourceClaim.
Trait Implementations§
source§impl Clone for PodResourceClaim
impl Clone for PodResourceClaim
source§fn clone(&self) -> PodResourceClaim
fn clone(&self) -> PodResourceClaim
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 PodResourceClaim
impl Debug for PodResourceClaim
source§impl DeepMerge for PodResourceClaim
impl DeepMerge for PodResourceClaim
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for PodResourceClaim
impl Default for PodResourceClaim
source§fn default() -> PodResourceClaim
fn default() -> PodResourceClaim
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PodResourceClaim
impl<'de> Deserialize<'de> for PodResourceClaim
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 PodResourceClaim
impl PartialEq for PodResourceClaim
source§fn eq(&self, other: &PodResourceClaim) -> bool
fn eq(&self, other: &PodResourceClaim) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PodResourceClaim
impl Serialize for PodResourceClaim
impl StructuralPartialEq for PodResourceClaim
Auto Trait Implementations§
impl Freeze for PodResourceClaim
impl RefUnwindSafe for PodResourceClaim
impl Send for PodResourceClaim
impl Sync for PodResourceClaim
impl Unpin for PodResourceClaim
impl UnwindSafe for PodResourceClaim
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