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 Freeze for PatchParams
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