pub struct SecretKeySelector {
pub key: Option<String>,
pub name: Option<String>,
pub optional: Option<bool>,
}Expand description
+structType=atomic
Fields§
§key: Option<String>The key of the secret to select from. Must be a valid secret key.
name: Option<String>Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid? +optional
optional: Option<bool>Specify whether the Secret or its key must be defined +optional
Implementations§
Source§impl SecretKeySelector
impl SecretKeySelector
pub fn new() -> SecretKeySelector
Trait Implementations§
Source§impl Clone for SecretKeySelector
impl Clone for SecretKeySelector
Source§fn clone(&self) -> SecretKeySelector
fn clone(&self) -> SecretKeySelector
Returns a duplicate 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 SecretKeySelector
impl Debug for SecretKeySelector
Source§impl<'de> Deserialize<'de> for SecretKeySelector
impl<'de> Deserialize<'de> for SecretKeySelector
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 FromStr for SecretKeySelector
Converts Query Parameters representation (style=form, explode=false) to a SecretKeySelector value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for SecretKeySelector
Converts Query Parameters representation (style=form, explode=false) to a SecretKeySelector value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for SecretKeySelector
impl PartialEq for SecretKeySelector
Source§impl Serialize for SecretKeySelector
impl Serialize for SecretKeySelector
Source§impl ToString for SecretKeySelector
Converts the SecretKeySelector value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for SecretKeySelector
Converts the SecretKeySelector value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer
Source§impl Validate for SecretKeySelector
impl Validate for SecretKeySelector
Source§impl<'v_a> ValidateArgs<'v_a> for SecretKeySelector
impl<'v_a> ValidateArgs<'v_a> for SecretKeySelector
impl StructuralPartialEq for SecretKeySelector
Auto Trait Implementations§
impl Freeze for SecretKeySelector
impl RefUnwindSafe for SecretKeySelector
impl Send for SecretKeySelector
impl Sync for SecretKeySelector
impl Unpin for SecretKeySelector
impl UnwindSafe for SecretKeySelector
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