pub struct RegisterEntityCheck {
pub Node: Option<String>,
pub CheckID: Option<String>,
pub Name: String,
pub Notes: Option<String>,
pub Status: Option<String>,
pub ServiceID: Option<String>,
pub Definition: HashMap<String, String>,
}Expand description
Information related to registering a check. See https://www.consul.io/docs/discovery/checks for more information.
Fields§
§Node: Option<String>The node to execute the check on.
CheckID: Option<String>Optional check id, defaults to the name of the check.
Name: StringThe name associated with the check
Notes: Option<String>Opaque field encapsulating human-readable text.
Status: Option<String>The status of the check. Must be one of ‘passing’, ‘warning’, or ‘critical’.
ServiceID: Option<String>ID of the service this check is for. If no ID of a service running on the node is provided, the check is treated as a node level check
Definition: HashMap<String, String>Details for a TCP or HTTP health check.
Implementations§
Source§impl RegisterEntityCheck
impl RegisterEntityCheck
Sourcepub fn builder() -> RegisterEntityCheckBuilder
pub fn builder() -> RegisterEntityCheckBuilder
Create an instance of RegisterEntityCheck using the builder syntax
Trait Implementations§
Source§impl Clone for RegisterEntityCheck
impl Clone for RegisterEntityCheck
Source§fn clone(&self) -> RegisterEntityCheck
fn clone(&self) -> RegisterEntityCheck
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RegisterEntityCheck
impl Debug for RegisterEntityCheck
Source§impl<'de> Deserialize<'de> for RegisterEntityCheck
impl<'de> Deserialize<'de> for RegisterEntityCheck
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
Auto Trait Implementations§
impl Freeze for RegisterEntityCheck
impl RefUnwindSafe for RegisterEntityCheck
impl Send for RegisterEntityCheck
impl Sync for RegisterEntityCheck
impl Unpin for RegisterEntityCheck
impl UnsafeUnpin for RegisterEntityCheck
impl UnwindSafe for RegisterEntityCheck
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