Struct consul_rs::agent::AgentServiceRegistration [−][src]
pub struct AgentServiceRegistration {Show fields
pub Kind: Option<String>,
pub ID: Option<String>,
pub Name: Option<String>,
pub Tags: Option<Vec<String>>,
pub Port: Option<usize>,
pub Address: Option<String>,
pub TaggedAddresses: Option<HashMap<String, ServiceAddress>>,
pub EnableTagOverride: Option<bool>,
pub Meta: Option<HashMap<String, String>>,
pub Weights: Option<AgentWeights>,
pub Check: Option<AgentServiceCheck>,
pub Checks: Option<Vec<AgentServiceCheck>>,
pub Proxy: Option<AgentServiceConnectProxyConfig>,
pub Connect: Option<AgentServiceConnect>,
}Expand description
AgentServiceRegistration is used to register a new service
Fields
Kind: Option<String>ID: Option<String>Name: Option<String>Tags: Option<Vec<String>>Port: Option<usize>Address: Option<String>TaggedAddresses: Option<HashMap<String, ServiceAddress>>EnableTagOverride: Option<bool>Meta: Option<HashMap<String, String>>Weights: Option<AgentWeights>Check: Option<AgentServiceCheck>Checks: Option<Vec<AgentServiceCheck>>Proxy: Option<AgentServiceConnectProxyConfig>Connect: Option<AgentServiceConnect>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 AgentServiceRegistrationimpl Send for AgentServiceRegistrationimpl Sync for AgentServiceRegistrationimpl Unpin for AgentServiceRegistrationimpl UnwindSafe for AgentServiceRegistrationBlanket 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 = TShould always be Self
pub fn vzip(self) -> VAttaches 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