pub struct ServiceCheck {Show 27 fields
pub interval: TimeDelta,
pub notes: String,
pub tls_server_name: Option<String>,
pub tls_skip_verify: Option<bool>,
pub task_name: Option<String>,
pub success_before_passing: Option<i64>,
pub failures_before_warning: Option<i64>,
pub type: String,
pub port_label: Option<String>,
pub grpc_service: Option<String>,
pub on_update: Option<String>,
pub path: String,
pub expose: bool,
pub address_mode: Option<String>,
pub header: HashMap<String, Vec<String>>,
pub body: String,
pub timeout: TimeDelta,
pub check_restart: Option<CheckRestart>,
pub failures_before_critical: Option<i64>,
pub method: String,
pub grpc_use_tls: Option<bool>,
pub name: String,
pub protocol: String,
pub initial_status: Option<String>,
pub command: String,
pub args: Vec<String>,
pub advertise: 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§
§interval: TimeDelta
§notes: String
§tls_server_name: Option<String>
§tls_skip_verify: Option<bool>
§task_name: Option<String>
§success_before_passing: Option<i64>
§failures_before_warning: Option<i64>
§type: String
§port_label: Option<String>
§grpc_service: Option<String>
§on_update: Option<String>
§path: String
§expose: bool
§address_mode: Option<String>
§header: HashMap<String, Vec<String>>
§body: String
§timeout: TimeDelta
§check_restart: Option<CheckRestart>
§failures_before_critical: Option<i64>
§method: String
§grpc_use_tls: Option<bool>
§name: String
§protocol: String
§initial_status: Option<String>
§command: String
§args: Vec<String>
§advertise: 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