pub struct Recommendation {Show 16 fields
pub region: String,
pub namespace: String,
pub job_id: String,
pub group: String,
pub task: String,
pub enforce_version: bool,
pub submit_time: i64,
pub id: String,
pub job_version: u64,
pub value: i64,
pub modify_index: u64,
pub resource: String,
pub meta: HashMap<String, Value>,
pub current: i64,
pub stats: HashMap<String, f64>,
pub create_index: u64,
}
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
§namespace: String
§job_id: String
§group: String
§task: String
§enforce_version: bool
§submit_time: i64
§id: String
§job_version: u64
§value: i64
§modify_index: u64
§resource: String
§meta: HashMap<String, Value>
§current: i64
§stats: HashMap<String, f64>
§create_index: u64
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