Struct kube_client::api::PatchParams
source · pub struct PatchParams {
pub dry_run: bool,
pub force: bool,
pub field_manager: Option<String>,
pub field_validation: Option<ValidationDirective>,
}
Available on crate feature
client
only.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 apply(manager: &str) -> PatchParams
pub fn apply(manager: &str) -> PatchParams
Construct PatchParams
for server-side apply
sourcepub fn force(self) -> PatchParams
pub fn force(self) -> PatchParams
Force the result through on conflicts
NB: Force is a concept restricted to the server-side Patch::Apply
.
sourcepub fn dry_run(self) -> PatchParams
pub fn dry_run(self) -> PatchParams
Perform a dryRun only
sourcepub fn validation(self, vd: ValidationDirective) -> PatchParams
pub fn validation(self, vd: ValidationDirective) -> PatchParams
Set the validation directive for fieldValidation
during server-side apply.
sourcepub fn validation_ignore(self) -> PatchParams
pub fn validation_ignore(self) -> PatchParams
Set the validation directive to Ignore
sourcepub fn validation_warn(self) -> PatchParams
pub fn validation_warn(self) -> PatchParams
Set the validation directive to Warn
sourcepub fn validation_strict(self) -> PatchParams
pub fn validation_strict(self) -> PatchParams
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