pub struct ServiceNode {
pub node: String,
pub address: String,
pub node_meta: HashMap<String, String>,
pub service_name: String,
pub service_tags: Vec<String>,
pub service_address: String,
pub service_port: u16,
pub service_meta: HashMap<String, String>,
}Expand description
Node serving a service, as specified in response to “list nodes for a service” API call in https://developer.hashicorp.com/consul/api-docs/catalog#list-nodes-for-service
Fields§
§node: String§address: String§node_meta: HashMap<String, String>§service_name: String§service_address: String§service_port: u16§service_meta: HashMap<String, String>Trait Implementations§
Source§impl Debug for ServiceNode
impl Debug for ServiceNode
Source§impl<'de> Deserialize<'de> for ServiceNode
impl<'de> Deserialize<'de> for ServiceNode
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
Source§impl PartialEq for ServiceNode
impl PartialEq for ServiceNode
Source§impl Serialize for ServiceNode
impl Serialize for ServiceNode
impl Eq for ServiceNode
impl StructuralPartialEq for ServiceNode
Auto Trait Implementations§
impl Freeze for ServiceNode
impl RefUnwindSafe for ServiceNode
impl Send for ServiceNode
impl Sync for ServiceNode
impl Unpin for ServiceNode
impl UnwindSafe for ServiceNode
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.