pub struct Recommendation {Show 16 fields
pub meta: HashMap<String, Value>,
pub id: String,
pub job_version: u64,
pub resource: String,
pub value: i64,
pub current: i64,
pub stats: HashMap<String, f64>,
pub enforce_version: bool,
pub create_index: u64,
pub namespace: String,
pub group: String,
pub task: String,
pub modify_index: u64,
pub region: String,
pub job_id: String,
pub submit_time: 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§
§meta: HashMap<String, Value>
§id: String
§job_version: u64
§resource: String
§value: i64
§current: i64
§stats: HashMap<String, f64>
§enforce_version: bool
§create_index: u64
§namespace: String
§group: String
§task: String
§modify_index: u64
§region: String
§job_id: String
§submit_time: i64
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 Default for Recommendation
impl Default for Recommendation
Source§fn default() -> Recommendation
fn default() -> Recommendation
Returns the “default value” for a type. Read more
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