pub struct RegisterOptions {
pub enforce_index: bool,
pub modify_index: u64,
pub policy_override: bool,
pub preserve_counts: bool,
pub eval_priority: i64,
pub submission: Option<JobSubmission>,
}Expand description
RegisterOptions is used to pass through job registration parameters
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§enforce_index: bool§modify_index: u64§policy_override: bool§preserve_counts: bool§eval_priority: i64§submission: Option<JobSubmission>Implementations§
Source§impl RegisterOptions
impl RegisterOptions
pub fn builder() -> RegisterOptionsBuilder
Trait Implementations§
Source§impl Clone for RegisterOptions
impl Clone for RegisterOptions
Source§fn clone(&self) -> RegisterOptions
fn clone(&self) -> RegisterOptions
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 RegisterOptions
impl Debug for RegisterOptions
Source§impl Default for RegisterOptions
impl Default for RegisterOptions
Source§fn default() -> RegisterOptions
fn default() -> RegisterOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RegisterOptions
impl<'de> Deserialize<'de> for RegisterOptions
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 RegisterOptions
impl PartialEq for RegisterOptions
Source§impl Serialize for RegisterOptions
impl Serialize for RegisterOptions
impl StructuralPartialEq for RegisterOptions
Auto Trait Implementations§
impl Freeze for RegisterOptions
impl RefUnwindSafe for RegisterOptions
impl Send for RegisterOptions
impl Sync for RegisterOptions
impl Unpin for RegisterOptions
impl UnwindSafe for RegisterOptions
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