pub struct NodeService {
pub id: String,
pub service: String,
pub tags: Vec<String>,
pub address: String,
pub tagged_addresses: Option<HashMap<String, ServiceAddress>>,
pub meta: HashMap<String, String>,
pub port: Option<u16>,
pub socket_path: Option<String>,
pub weights: Weights,
pub enable_tag_override: bool,
pub proxy: Option<ConnectProxyConfig>,
pub connect: Option<Box<ServiceConnect>>,
}
Expand description
NodeService is a service provided by a node
Fields§
§id: String
§service: String
§address: String
§tagged_addresses: Option<HashMap<String, ServiceAddress>>
§meta: HashMap<String, String>
§port: Option<u16>
§socket_path: Option<String>
§weights: Weights
§enable_tag_override: bool
§proxy: Option<ConnectProxyConfig>
Proxy is the configuration set for Kind = connect-proxy. It is mandatory in that case and an error to be set for any other kind. This config is part of a proxy service definition. ProxyConfig may be a more natural name here, but it’s confusing for the UX because one of the fields in ConnectProxyConfig is also called just “Config”
connect: Option<Box<ServiceConnect>>
Connect are the Connect settings for a service. This is purposely NOT a pointer so that we never have to nil-check this.
Trait Implementations§
Source§impl Clone for NodeService
impl Clone for NodeService
Source§fn clone(&self) -> NodeService
fn clone(&self) -> NodeService
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 NodeService
impl Debug for NodeService
Source§impl Default for NodeService
impl Default for NodeService
Source§fn default() -> NodeService
fn default() -> NodeService
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeService
impl<'de> Deserialize<'de> for NodeService
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 NodeService
impl RefUnwindSafe for NodeService
impl Send for NodeService
impl Sync for NodeService
impl Unpin for NodeService
impl UnwindSafe for NodeService
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