pub struct ScalingRequest {
pub count: Option<i64>,
pub target: HashMap<String, String>,
pub message: String,
pub error: bool,
pub meta: HashMap<String, Value>,
pub policy_override: bool,
pub job_modify_index: u64,
}
Expand description
ScalingRequest is the payload for a generic scaling action
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§count: Option<i64>
§target: HashMap<String, String>
§message: String
§error: bool
§meta: HashMap<String, Value>
§policy_override: bool
this is effectively a job update, so we need the ability to override policy.
job_modify_index: u64
If JobModifyIndex is set then the job will only be scaled if it matches the current Jobs index. The JobModifyIndex is ignored if 0.
Implementations§
Source§impl ScalingRequest
impl ScalingRequest
pub fn builder() -> ScalingRequestBuilder
Trait Implementations§
Source§impl Clone for ScalingRequest
impl Clone for ScalingRequest
Source§fn clone(&self) -> ScalingRequest
fn clone(&self) -> ScalingRequest
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 ScalingRequest
impl Debug for ScalingRequest
Source§impl<'de> Deserialize<'de> for ScalingRequest
impl<'de> Deserialize<'de> for ScalingRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ScalingRequest
impl PartialEq for ScalingRequest
Source§impl Serialize for ScalingRequest
impl Serialize for ScalingRequest
impl StructuralPartialEq for ScalingRequest
Auto Trait Implementations§
impl Freeze for ScalingRequest
impl RefUnwindSafe for ScalingRequest
impl Send for ScalingRequest
impl Sync for ScalingRequest
impl Unpin for ScalingRequest
impl UnwindSafe for ScalingRequest
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