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 JsonSchema for PodResourceClaim
impl JsonSchema for PodResourceClaim
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(__gen: &mut SchemaGenerator) -> Schema
fn json_schema(__gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for PodResourceClaim
impl PartialEq for PodResourceClaim
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)