pub struct ServiceCheck {Show 27 fields
pub timeout: TimeDelta,
pub check_restart: Option<CheckRestart>,
pub grpc_use_tls: Option<bool>,
pub type: String,
pub port_label: Option<String>,
pub method: String,
pub path: String,
pub expose: bool,
pub advertise: String,
pub grpc_service: Option<String>,
pub failures_before_warning: Option<i64>,
pub interval: TimeDelta,
pub initial_status: Option<String>,
pub tls_server_name: Option<String>,
pub failures_before_critical: Option<i64>,
pub name: String,
pub command: String,
pub body: String,
pub args: Vec<String>,
pub notes: String,
pub tls_skip_verify: Option<bool>,
pub header: HashMap<String, Vec<String>>,
pub success_before_passing: Option<i64>,
pub on_update: Option<String>,
pub protocol: String,
pub address_mode: Option<String>,
pub task_name: Option<String>,
}
Expand description
ServiceCheck represents a Nomad job-submitters view of a Consul service health check.
This struct was generated based on the Go types of the official Nomad API.
Fields§
§timeout: TimeDelta
§check_restart: Option<CheckRestart>
§grpc_use_tls: Option<bool>
§type: String
§port_label: Option<String>
§method: String
§path: String
§expose: bool
§advertise: String
§grpc_service: Option<String>
§failures_before_warning: Option<i64>
§interval: TimeDelta
§initial_status: Option<String>
§tls_server_name: Option<String>
§failures_before_critical: Option<i64>
§name: String
§command: String
§body: String
§args: Vec<String>
§notes: String
§tls_skip_verify: Option<bool>
§header: HashMap<String, Vec<String>>
§success_before_passing: Option<i64>
§on_update: Option<String>
§protocol: String
§address_mode: Option<String>
§task_name: Option<String>
Trait Implementations§
Source§impl Clone for ServiceCheck
impl Clone for ServiceCheck
Source§fn clone(&self) -> ServiceCheck
fn clone(&self) -> ServiceCheck
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 ServiceCheck
impl Debug for ServiceCheck
Source§impl Default for ServiceCheck
impl Default for ServiceCheck
Source§fn default() -> ServiceCheck
fn default() -> ServiceCheck
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceCheck
impl<'de> Deserialize<'de> for ServiceCheck
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 ServiceCheck
impl PartialEq for ServiceCheck
Source§impl Serialize for ServiceCheck
impl Serialize for ServiceCheck
impl StructuralPartialEq for ServiceCheck
Auto Trait Implementations§
impl Freeze for ServiceCheck
impl RefUnwindSafe for ServiceCheck
impl Send for ServiceCheck
impl Sync for ServiceCheck
impl Unpin for ServiceCheck
impl UnwindSafe for ServiceCheck
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