pub struct IoK8sApiCoreV1SecretKeySelectorBuilder { /* private fields */ }
Expand description
Builder for IoK8sApiCoreV1SecretKeySelector
.
Implementations§
Source§impl IoK8sApiCoreV1SecretKeySelectorBuilder
impl IoK8sApiCoreV1SecretKeySelectorBuilder
Sourcepub fn key(&mut self, value: String) -> &mut Self
pub fn key(&mut self, value: String) -> &mut Self
The key of the secret to select from. Must be a valid secret key.
Sourcepub fn name(&mut self, value: Option<String>) -> &mut Self
pub fn name(&mut self, value: Option<String>) -> &mut Self
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
Sourcepub fn optional(&mut self, value: Option<bool>) -> &mut Self
pub fn optional(&mut self, value: Option<bool>) -> &mut Self
Specify whether the Secret or its key must be defined
Sourcepub fn build(
&self,
) -> Result<IoK8sApiCoreV1SecretKeySelector, IoK8sApiCoreV1SecretKeySelectorBuilderError>
pub fn build( &self, ) -> Result<IoK8sApiCoreV1SecretKeySelector, IoK8sApiCoreV1SecretKeySelectorBuilderError>
Trait Implementations§
Source§impl Clone for IoK8sApiCoreV1SecretKeySelectorBuilder
impl Clone for IoK8sApiCoreV1SecretKeySelectorBuilder
Source§fn clone(&self) -> IoK8sApiCoreV1SecretKeySelectorBuilder
fn clone(&self) -> IoK8sApiCoreV1SecretKeySelectorBuilder
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 moreAuto Trait Implementations§
impl Freeze for IoK8sApiCoreV1SecretKeySelectorBuilder
impl RefUnwindSafe for IoK8sApiCoreV1SecretKeySelectorBuilder
impl Send for IoK8sApiCoreV1SecretKeySelectorBuilder
impl Sync for IoK8sApiCoreV1SecretKeySelectorBuilder
impl Unpin for IoK8sApiCoreV1SecretKeySelectorBuilder
impl UnwindSafe for IoK8sApiCoreV1SecretKeySelectorBuilder
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