pub struct CatalogNode {
pub id: String,
pub node: String,
pub address: String,
pub datacenter: String,
pub TaggedAddresses: Option<HashMap<String, String>>,
pub Meta: Option<HashMap<String, String>>,
}Expand description
The node information of an instance providing a Consul service.
Fields§
§id: StringThe ID of the service node.
node: StringThe name of the Consul node on which the service is registered
address: StringThe IP address of the Consul node on which the service is registered.
datacenter: StringThe datacenter where this node is running on.
TaggedAddresses: Option<HashMap<String, String>>Tagged addressed to register with.
Meta: Option<HashMap<String, String>>Optional key value meta associated with the service.
Trait Implementations§
Source§impl Clone for CatalogNode
impl Clone for CatalogNode
Source§fn clone(&self) -> CatalogNode
fn clone(&self) -> CatalogNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CatalogNode
impl Debug for CatalogNode
Source§impl Default for CatalogNode
impl Default for CatalogNode
Source§impl<'de> Deserialize<'de> for CatalogNode
impl<'de> Deserialize<'de> for CatalogNode
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 CatalogNode
impl PartialEq for CatalogNode
Source§impl Serialize for CatalogNode
impl Serialize for CatalogNode
impl StructuralPartialEq for CatalogNode
Auto Trait Implementations§
impl Freeze for CatalogNode
impl RefUnwindSafe for CatalogNode
impl Send for CatalogNode
impl Sync for CatalogNode
impl Unpin for CatalogNode
impl UnsafeUnpin for CatalogNode
impl UnwindSafe for CatalogNode
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