pub struct ScalingRequestBuilder { /* private fields */ }
Expand description
Builder for ScalingRequest
.
Implementations§
Source§impl ScalingRequestBuilder
impl ScalingRequestBuilder
pub fn count(&mut self, value: Option<i64>) -> &mut Self
pub fn target(&mut self, value: HashMap<String, String>) -> &mut Self
pub fn message(&mut self, value: String) -> &mut Self
pub fn error(&mut self, value: bool) -> &mut Self
pub fn meta(&mut self, value: HashMap<String, Value>) -> &mut Self
Sourcepub fn policy_override(&mut self, value: bool) -> &mut Self
pub fn policy_override(&mut self, value: bool) -> &mut Self
this is effectively a job update, so we need the ability to override policy.
Sourcepub fn job_modify_index(&mut self, value: u64) -> &mut Self
pub fn job_modify_index(&mut self, value: u64) -> &mut Self
If JobModifyIndex is set then the job will only be scaled if it matches the current Jobs index. The JobModifyIndex is ignored if 0.
Sourcepub fn build(&self) -> Result<ScalingRequest, ScalingRequestBuilderError>
pub fn build(&self) -> Result<ScalingRequest, ScalingRequestBuilderError>
Trait Implementations§
Source§impl Clone for ScalingRequestBuilder
impl Clone for ScalingRequestBuilder
Source§fn clone(&self) -> ScalingRequestBuilder
fn clone(&self) -> ScalingRequestBuilder
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 ScalingRequestBuilder
impl RefUnwindSafe for ScalingRequestBuilder
impl Send for ScalingRequestBuilder
impl Sync for ScalingRequestBuilder
impl Unpin for ScalingRequestBuilder
impl UnwindSafe for ScalingRequestBuilder
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