pub struct ServiceNode {Show 19 fields
pub id: String,
pub node: String,
pub address: String,
pub datacenter: String,
pub tagged_addresses: HashMap<String, String>,
pub node_meta: HashMap<String, String>,
pub service_kind: String,
pub service_id: String,
pub service_name: String,
pub service_tags: Vec<String>,
pub service_address: String,
pub service_tagged_addresses: Option<HashMap<String, ServiceAddress>>,
pub service_weights: Weights,
pub service_meta: HashMap<String, String>,
pub service_port: u16,
pub service_socket_path: String,
pub service_enable_tag_override: bool,
pub service_proxy: ConnectProxyConfig,
pub service_connect: Box<ServiceConnect>,
}
Expand description
ServiceNode represents a node that is part of a service. ID, Address, TaggedAddresses, and NodeMeta are node-related fields that are always empty in the state store and are filled in on the way out by parseServiceNodes(). This is also why PartialClone() skips them, because we know they are blank already so it would be a waste of time to copy them. This is somewhat complicated when the address is really a unix domain socket; technically that will override the address field, but in practice the two use cases should not overlap.
Fields§
§id: String
§node: String
§address: String
§datacenter: String
§tagged_addresses: HashMap<String, String>
§node_meta: HashMap<String, String>
§service_kind: String
§service_id: String
§service_name: String
§service_address: String
§service_tagged_addresses: Option<HashMap<String, ServiceAddress>>
§service_weights: Weights
§service_meta: HashMap<String, String>
§service_port: u16
§service_socket_path: String
§service_enable_tag_override: bool
§service_proxy: ConnectProxyConfig
§service_connect: Box<ServiceConnect>
Trait Implementations§
Source§impl Clone for ServiceNode
impl Clone for ServiceNode
Source§fn clone(&self) -> ServiceNode
fn clone(&self) -> ServiceNode
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 ServiceNode
impl Debug for ServiceNode
Source§impl Default for ServiceNode
impl Default for ServiceNode
Source§fn default() -> ServiceNode
fn default() -> ServiceNode
Returns the “default value” for a type. Read more
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
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§
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