pub struct ClientConnectOptions {
pub url: Option<String>,
pub seed: Option<String>,
pub jwt: Option<String>,
pub creds_path: Option<PathBuf>,
pub ca_path: Option<PathBuf>,
}
Expand description
Options for connecting to a NATS server for a Wadm client. Setting none of these options will default to anonymous authentication with a localhost NATS server running on port 4222
Fields§
§url: Option<String>
The URL of the NATS server to connect to. If not provided, the client will connect to the default NATS address of 127.0.0.1:4222
seed: Option<String>
An nkey seed to use for authenticating with the NATS server. This can either be the raw seed
or a path to a file containing the seed. If used, the jwt
option must be provided
jwt: Option<String>
A JWT to use for authenticating with the NATS server. This can either be the raw JWT or a
path to a file containing the JWT. If used, the seed
option must be provided
creds_path: Option<PathBuf>
A path to a file containing the credentials to use for authenticating with the NATS server.
If used, the seed
and jwt
options must not be provided
ca_path: Option<PathBuf>
An optional path to a file containing the root CA certificates to use for authenticating with the NATS server.
Trait Implementations§
Source§impl Clone for ClientConnectOptions
impl Clone for ClientConnectOptions
Source§fn clone(&self) -> ClientConnectOptions
fn clone(&self) -> ClientConnectOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more