Struct kube_core::params::PatchParams
source · pub struct PatchParams {
pub dry_run: bool,
pub force: bool,
pub field_manager: Option<String>,
pub field_validation: Option<ValidationDirective>,
}
Expand description
Common query parameters for patch calls
Fields§
§dry_run: bool
Whether to run this as a dry run
force: bool
force Apply requests. Applicable only to Patch::Apply
.
field_manager: Option<String>
fieldManager is a name of the actor that is making changes. Required for Patch::Apply
optional for everything else.
field_validation: Option<ValidationDirective>
The server-side validation directive to use. Applicable only to Patch::Apply
.
Implementations§
source§impl PatchParams
impl PatchParams
sourcepub fn force(self) -> Self
pub fn force(self) -> Self
Force the result through on conflicts
NB: Force is a concept restricted to the server-side Patch::Apply
.
sourcepub fn validation(self, vd: ValidationDirective) -> Self
pub fn validation(self, vd: ValidationDirective) -> Self
Set the validation directive for fieldValidation
during server-side apply.
sourcepub fn validation_ignore(self) -> Self
pub fn validation_ignore(self) -> Self
Set the validation directive to Ignore
sourcepub fn validation_warn(self) -> Self
pub fn validation_warn(self) -> Self
Set the validation directive to Warn
sourcepub fn validation_strict(self) -> Self
pub fn validation_strict(self) -> Self
Set the validation directive to Strict
Trait Implementations§
source§impl Clone for PatchParams
impl Clone for PatchParams
source§fn clone(&self) -> PatchParams
fn clone(&self) -> PatchParams
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 PatchParams
impl Debug for PatchParams
source§impl Default for PatchParams
impl Default for PatchParams
source§fn default() -> PatchParams
fn default() -> PatchParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for PatchParams
impl Send for PatchParams
impl Sync for PatchParams
impl Unpin for PatchParams
impl UnwindSafe for PatchParams
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