pub struct AgentService {Show 18 fields
pub id: String,
pub service: String,
pub tags: Vec<String>,
pub meta: HashMap<String, String>,
pub port: u16,
pub address: String,
pub socket_path: Option<String>,
pub tagged_addresses: Option<HashMap<String, ServiceAddress>>,
pub weights: AgentWeights,
pub enable_tag_override: bool,
pub create_index: Option<u64>,
pub modify_index: Option<u64>,
pub content_hash: Option<String>,
pub proxy: Option<AgentServiceConnectProxyConfig>,
pub connect: Option<AgentServiceConnect>,
pub namespace: Option<String>,
pub partition: Option<String>,
pub datacenter: Option<String>,
}
Expand description
AgentService represents a service known to the agent
Fields§
§id: String
§service: String
§meta: HashMap<String, String>
§port: u16
§address: String
§socket_path: Option<String>
§tagged_addresses: Option<HashMap<String, ServiceAddress>>
§weights: AgentWeights
§enable_tag_override: bool
§create_index: Option<u64>
§modify_index: Option<u64>
§content_hash: Option<String>
§proxy: Option<AgentServiceConnectProxyConfig>
§connect: Option<AgentServiceConnect>
§namespace: Option<String>
NOTE: If we ever set the ContentHash outside of singular service lookup then we may need to include the Namespace in the hash. When we do, then we are in for lots of fun with tests. For now though, ignoring it works well enough.
partition: Option<String>
§datacenter: Option<String>
Datacenter is only ever returned and is ignored if presented.
Trait Implementations§
Source§impl Clone for AgentService
impl Clone for AgentService
Source§fn clone(&self) -> AgentService
fn clone(&self) -> AgentService
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 AgentService
impl Debug for AgentService
Source§impl Default for AgentService
impl Default for AgentService
Source§fn default() -> AgentService
fn default() -> AgentService
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentService
impl<'de> Deserialize<'de> for AgentService
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 AgentService
impl RefUnwindSafe for AgentService
impl Send for AgentService
impl Sync for AgentService
impl Unpin for AgentService
impl UnwindSafe for AgentService
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