pub struct DispatchOptions {
pub job_id: String,
pub meta: HashMap<String, String>,
pub payload: Vec<u8>,
pub id_prefix_template: String,
pub priority: i64,
}
Expand description
DispatchOptions is used to pass through job dispatch parameters
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§job_id: String
§meta: HashMap<String, String>
§payload: Vec<u8>
§id_prefix_template: String
§priority: i64
Implementations§
Source§impl DispatchOptions
impl DispatchOptions
pub fn builder() -> DispatchOptionsBuilder
Trait Implementations§
Source§impl Clone for DispatchOptions
impl Clone for DispatchOptions
Source§fn clone(&self) -> DispatchOptions
fn clone(&self) -> DispatchOptions
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 moreSource§impl Debug for DispatchOptions
impl Debug for DispatchOptions
Source§impl Default for DispatchOptions
impl Default for DispatchOptions
Source§fn default() -> DispatchOptions
fn default() -> DispatchOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DispatchOptions
impl<'de> Deserialize<'de> for DispatchOptions
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 DispatchOptions
impl PartialEq for DispatchOptions
Source§impl Serialize for DispatchOptions
impl Serialize for DispatchOptions
impl StructuralPartialEq for DispatchOptions
Auto Trait Implementations§
impl Freeze for DispatchOptions
impl RefUnwindSafe for DispatchOptions
impl Send for DispatchOptions
impl Sync for DispatchOptions
impl Unpin for DispatchOptions
impl UnwindSafe for DispatchOptions
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