pub struct ServiceRegistrationOptions {
pub metadata: HashMap<String, String>,
pub tags: Vec<String>,
pub health_check: Option<HealthCheck>,
pub secure: bool,
}Expand description
Optional configuration for service registration.
This struct allows you to specify additional metadata, tags, health checks, and security settings when registering a service.
Fields§
§metadata: HashMap<String, String>§health_check: Option<HealthCheck>§secure: boolImplementations§
Source§impl ServiceRegistrationOptions
Service registration options.
impl ServiceRegistrationOptions
Service registration options.
pub fn new() -> Self
Sourcepub fn with_metadata(self, metadata: HashMap<String, String>) -> Self
pub fn with_metadata(self, metadata: HashMap<String, String>) -> Self
Set metadata for the service.
Set tags for the service.
Sourcepub fn with_health_check(self, health_check: HealthCheck) -> Self
pub fn with_health_check(self, health_check: HealthCheck) -> Self
Set health check configuration for the service.
Sourcepub fn with_secure(self, secure: bool) -> Self
pub fn with_secure(self, secure: bool) -> Self
Set whether the service uses HTTPS/TLS.
Trait Implementations§
Source§impl Clone for ServiceRegistrationOptions
impl Clone for ServiceRegistrationOptions
Source§fn clone(&self) -> ServiceRegistrationOptions
fn clone(&self) -> ServiceRegistrationOptions
Returns a duplicate 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 ServiceRegistrationOptions
impl Debug for ServiceRegistrationOptions
Source§impl Default for ServiceRegistrationOptions
impl Default for ServiceRegistrationOptions
Source§fn default() -> ServiceRegistrationOptions
fn default() -> ServiceRegistrationOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ServiceRegistrationOptions
impl RefUnwindSafe for ServiceRegistrationOptions
impl Send for ServiceRegistrationOptions
impl Sync for ServiceRegistrationOptions
impl Unpin for ServiceRegistrationOptions
impl UnwindSafe for ServiceRegistrationOptions
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