Struct brane_ctl::old_configs::v1_0_0::node::NodeConfig
source · pub struct NodeConfig {
pub hosts: HashMap<String, IpAddr>,
pub proxy: Option<Address>,
pub names: CommonNames,
pub paths: CommonPaths,
pub ports: CommonPorts,
pub services: CommonServices,
pub node: NodeKindConfig,
}
Expand description
Defines a node.json
file that describes the environment layout of a node (what type it is, its location ID, where to find folders/services, etc).
Fields§
§hosts: HashMap<String, IpAddr>
Defines any custom hostname -> IP mappings.
proxy: Option<Address>
Defines the proxy address to use for control messages, if any.
names: CommonNames
Defines the names of the services that occur on every kind of node.
paths: CommonPaths
Defines the paths used by various services that occur on every kind of node.
ports: CommonPorts
Defines the ports where various services hosts themselves that occur on any kind of node.
services: CommonServices
Defines service addresses that occur on any kind of node.
node: NodeKindConfig
NodeKind-specific configuration options,
Implementations§
Trait Implementations§
source§impl AsRef<NodeConfig> for NodeConfig
impl AsRef<NodeConfig> for NodeConfig
source§impl Clone for NodeConfig
impl Clone for NodeConfig
source§fn clone(&self) -> NodeConfig
fn clone(&self) -> NodeConfig
Returns a copy 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 NodeConfig
impl Debug for NodeConfig
source§impl<'de> Deserialize<'de> for NodeConfig
impl<'de> Deserialize<'de> for NodeConfig
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 From<&NodeConfig> for NodeConfig
impl From<&NodeConfig> for NodeConfig
source§fn from(value: &NodeConfig) -> Self
fn from(value: &NodeConfig) -> Self
Converts to this type from the input type.
source§impl From<&mut NodeConfig> for NodeConfig
impl From<&mut NodeConfig> for NodeConfig
source§fn from(value: &mut NodeConfig) -> Self
fn from(value: &mut NodeConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NodeConfig
impl RefUnwindSafe for NodeConfig
impl Send for NodeConfig
impl Sync for NodeConfig
impl Unpin for NodeConfig
impl UnwindSafe for NodeConfig
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more