Struct consul_rs::agent::ServiceRegisterOpts [−][src]
pub struct ServiceRegisterOpts { pub ReplaceExistingChecks: bool, }
Expand description
ServiceRegisterOpts is used to pass extra options to the service register.
Fields
ReplaceExistingChecks: bool
Missing healthchecks will be deleted from the agent. Using this parameter allows to idempotently register a service and its checks without having to manually deregister checks.
Trait Implementations
Returns the “default value” for a type. Read more
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 RefUnwindSafe for ServiceRegisterOpts
impl Send for ServiceRegisterOpts
impl Sync for ServiceRegisterOpts
impl Unpin for ServiceRegisterOpts
impl UnwindSafe for ServiceRegisterOpts
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more