pub struct ResourceClaim {
pub name: String,
pub request: Option<String>,
}
Expand description
ResourceClaim references one entry in PodSpec.ResourceClaims.
Fields§
§name: String
Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.
request: Option<String>
Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request.
Trait Implementations§
Source§impl Clone for ResourceClaim
impl Clone for ResourceClaim
Source§fn clone(&self) -> ResourceClaim
fn clone(&self) -> ResourceClaim
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 ResourceClaim
impl Debug for ResourceClaim
Source§impl DeepMerge for ResourceClaim
impl DeepMerge for ResourceClaim
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for ResourceClaim
impl Default for ResourceClaim
Source§fn default() -> ResourceClaim
fn default() -> ResourceClaim
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResourceClaim
impl<'de> Deserialize<'de> for ResourceClaim
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 ResourceClaim
impl PartialEq for ResourceClaim
Source§impl Serialize for ResourceClaim
impl Serialize for ResourceClaim
impl StructuralPartialEq for ResourceClaim
Auto Trait Implementations§
impl Freeze for ResourceClaim
impl RefUnwindSafe for ResourceClaim
impl Send for ResourceClaim
impl Sync for ResourceClaim
impl Unpin for ResourceClaim
impl UnwindSafe for ResourceClaim
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