pub struct AgentServiceRegistration {Show 17 fields
pub kind: Option<String>,
pub id: Option<String>,
pub name: Option<String>,
pub tags: Option<Vec<String>>,
pub port: Option<u16>,
pub address: Option<String>,
pub socket_path: Option<String>,
pub tagged_addresses: Option<HashMap<String, ServiceAddress>>,
pub enable_tag_override: Option<bool>,
pub meta: Option<HashMap<String, String>>,
pub weights: Option<AgentWeights>,
pub check: AgentServiceCheck,
pub checks: AgentServiceChecks,
pub proxy: Option<AgentServiceConnectProxyConfig>,
pub connect: Option<AgentServiceConnect>,
pub namespace: Option<String>,
pub partition: Option<String>,
}
Expand description
AgentServiceRegistration is used to register a new service
Fields§
§kind: Option<String>
§id: Option<String>
§name: Option<String>
§port: Option<u16>
§address: Option<String>
§socket_path: Option<String>
§tagged_addresses: Option<HashMap<String, ServiceAddress>>
§enable_tag_override: Option<bool>
§meta: Option<HashMap<String, String>>
§weights: Option<AgentWeights>
§check: AgentServiceCheck
§checks: AgentServiceChecks
§proxy: Option<AgentServiceConnectProxyConfig>
§connect: Option<AgentServiceConnect>
§namespace: Option<String>
§partition: Option<String>
Trait Implementations§
Source§impl Clone for AgentServiceRegistration
impl Clone for AgentServiceRegistration
Source§fn clone(&self) -> AgentServiceRegistration
fn clone(&self) -> AgentServiceRegistration
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 AgentServiceRegistration
impl Debug for AgentServiceRegistration
Source§impl Default for AgentServiceRegistration
impl Default for AgentServiceRegistration
Source§fn default() -> AgentServiceRegistration
fn default() -> AgentServiceRegistration
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentServiceRegistration
impl<'de> Deserialize<'de> for AgentServiceRegistration
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 AgentServiceRegistration
impl RefUnwindSafe for AgentServiceRegistration
impl Send for AgentServiceRegistration
impl Sync for AgentServiceRegistration
impl Unpin for AgentServiceRegistration
impl UnwindSafe for AgentServiceRegistration
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