Struct wick_component_cli::options::MeshOptions
source · #[non_exhaustive]pub struct MeshOptions {
pub enabled: bool,
pub address: String,
pub creds_path: Option<PathBuf>,
pub token: Option<String>,
}Expand description
Configuration used to connect to the mesh
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enabled: boolEnable/disable the mesh connection.
address: StringThe address of the NATS server.
creds_path: Option<PathBuf>The path to the NATS credsfile.
token: Option<String>The NATS token.
Trait Implementations§
source§impl Clone for MeshOptions
impl Clone for MeshOptions
source§fn clone(&self) -> MeshOptions
fn clone(&self) -> MeshOptions
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 MeshOptions
impl Debug for MeshOptions
source§impl Default for MeshOptions
impl Default for MeshOptions
source§fn default() -> MeshOptions
fn default() -> MeshOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for MeshOptions
impl Send for MeshOptions
impl Sync for MeshOptions
impl Unpin for MeshOptions
impl UnwindSafe for MeshOptions
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
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