pub struct ServiceRegisterOpts {
pub ReplaceExistingChecks: bool,
}Expand description
ServiceRegisterOpts is used to pass extra options to the service register.
Fields§
§ReplaceExistingChecks: boolMissing 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§
Source§impl Clone for ServiceRegisterOpts
impl Clone for ServiceRegisterOpts
Source§fn clone(&self) -> ServiceRegisterOpts
fn clone(&self) -> ServiceRegisterOpts
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 ServiceRegisterOpts
impl Debug for ServiceRegisterOpts
Source§impl Default for ServiceRegisterOpts
impl Default for ServiceRegisterOpts
Source§fn default() -> ServiceRegisterOpts
fn default() -> ServiceRegisterOpts
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceRegisterOpts
impl<'de> Deserialize<'de> for ServiceRegisterOpts
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 ServiceRegisterOpts
impl RefUnwindSafe for ServiceRegisterOpts
impl Send for ServiceRegisterOpts
impl Sync for ServiceRegisterOpts
impl Unpin for ServiceRegisterOpts
impl UnsafeUnpin for ServiceRegisterOpts
impl UnwindSafe for ServiceRegisterOpts
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