pub struct Recommendation {Show 16 fields
pub region: String,
pub task: String,
pub stats: HashMap<String, f64>,
pub current: i64,
pub enforce_version: bool,
pub submit_time: i64,
pub meta: HashMap<String, Value>,
pub create_index: u64,
pub modify_index: u64,
pub id: String,
pub namespace: String,
pub job_id: String,
pub job_version: u64,
pub group: String,
pub resource: String,
pub value: i64,
}
Expand description
Recommendation is used to serialize a recommendation.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§region: String
§task: String
§stats: HashMap<String, f64>
§current: i64
§enforce_version: bool
§submit_time: i64
§meta: HashMap<String, Value>
§create_index: u64
§modify_index: u64
§id: String
§namespace: String
§job_id: String
§job_version: u64
§group: String
§resource: String
§value: i64
Implementations§
Source§impl Recommendation
impl Recommendation
pub fn builder() -> RecommendationBuilder
Trait Implementations§
Source§impl Clone for Recommendation
impl Clone for Recommendation
Source§fn clone(&self) -> Recommendation
fn clone(&self) -> Recommendation
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 Recommendation
impl Debug for Recommendation
Source§impl<'de> Deserialize<'de> for Recommendation
impl<'de> Deserialize<'de> for Recommendation
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 Recommendation
impl PartialEq for Recommendation
Source§impl Serialize for Recommendation
impl Serialize for Recommendation
impl StructuralPartialEq for Recommendation
Auto Trait Implementations§
impl Freeze for Recommendation
impl RefUnwindSafe for Recommendation
impl Send for Recommendation
impl Sync for Recommendation
impl Unpin for Recommendation
impl UnwindSafe for Recommendation
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