pub struct SecretsConfigPatch { /* private fields */ }Expand description
A sparse, presence-aware patch for SecretsConfig.
Implementations§
Source§impl SecretsConfigPatch
impl SecretsConfigPatch
Sourcepub fn secrets(self, value: Vec<SecretEntry>) -> Self
pub fn secrets(self, value: Vec<SecretEntry>) -> Self
Merge value into the secrets field.
Sourcepub fn on_violation(self, value: ViolationAction) -> Self
pub fn on_violation(self, value: ViolationAction) -> Self
Set the on_violation field in this patch.
Sourcepub fn replace_secrets(self, value: Vec<SecretEntry>) -> Self
pub fn replace_secrets(self, value: Vec<SecretEntry>) -> Self
Replace the complete secrets field.
Sourcepub fn clear_secrets(self) -> Self
pub fn clear_secrets(self) -> Self
Remove secrets from this patch so applying it leaves the target unchanged.
Sourcepub fn clear_on_violation(self) -> Self
pub fn clear_on_violation(self) -> Self
Remove on_violation from this patch so applying it leaves the target unchanged.
Sourcepub fn overlay(self, higher: Self) -> Self
pub fn overlay(self, higher: Self) -> Self
Overlay a higher-precedence patch using each field’s declared strategy.
Sourcepub fn apply_to(self, target: &mut SecretsConfig)
pub fn apply_to(self, target: &mut SecretsConfig)
Apply every present field to an existing value.
Sourcepub fn from_present_fields(value: SecretsConfig) -> Self
pub fn from_present_fields(value: SecretsConfig) -> Self
Convert non-null fields into a changeset, treating Option::None as absent.
Trait Implementations§
Source§impl Clone for SecretsConfigPatch
impl Clone for SecretsConfigPatch
Source§fn clone(&self) -> SecretsConfigPatch
fn clone(&self) -> SecretsConfigPatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SecretsConfigPatch
impl Debug for SecretsConfigPatch
Source§impl Default for SecretsConfigPatch
impl Default for SecretsConfigPatch
Source§fn default() -> SecretsConfigPatch
fn default() -> SecretsConfigPatch
Returns the “default value” for a type. Read more
Source§impl From<SecretsConfig> for SecretsConfigPatch
impl From<SecretsConfig> for SecretsConfigPatch
Source§fn from(value: SecretsConfig) -> Self
fn from(value: SecretsConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SecretsConfigPatch
impl RefUnwindSafe for SecretsConfigPatch
impl Send for SecretsConfigPatch
impl Sync for SecretsConfigPatch
impl Unpin for SecretsConfigPatch
impl UnsafeUnpin for SecretsConfigPatch
impl UnwindSafe for SecretsConfigPatch
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