Struct async_nats::ConnectInfo
source · pub struct ConnectInfo {Show 16 fields
pub verbose: bool,
pub pedantic: bool,
pub user_jwt: Option<String>,
pub nkey: Option<String>,
pub signature: Option<String>,
pub name: Option<String>,
pub echo: bool,
pub lang: String,
pub version: String,
pub protocol: Protocol,
pub tls_required: bool,
pub user: Option<String>,
pub pass: Option<String>,
pub auth_token: Option<String>,
pub headers: bool,
pub no_responders: bool,
}Expand description
Info to construct a CONNECT message.
Fields§
§verbose: boolTurns on +OK protocol acknowledgments.
pedantic: boolTurns on additional strict format checking, e.g. for properly formed subjects.
user_jwt: Option<String>User’s JWT.
nkey: Option<String>Public nkey.
signature: Option<String>Signed nonce, encoded to Base64URL.
name: Option<String>Optional client name.
echo: boolIf set to true, the server (version 1.2.0+) will not send originating
messages from this connection to its own subscriptions. Clients should
set this to true only for server supporting this feature, which is
when proto in the INFO protocol is set to at least 1.
lang: StringThe implementation language of the client.
version: StringThe version of the client.
protocol: ProtocolSending 0 (or absent) indicates client supports original protocol. Sending 1 indicates that the client supports dynamic reconfiguration of cluster topology changes by asynchronously receiving INFO messages with known servers it can reconnect to.
tls_required: boolIndicates whether the client requires an SSL connection.
user: Option<String>Connection username (if auth_required is set)
pass: Option<String>Connection password (if auth_required is set)
auth_token: Option<String>Client authorization token (if auth_required is set)
headers: boolWhether the client supports the usage of headers.
no_responders: boolWhether the client supports no_responders.
Trait Implementations§
source§impl Clone for ConnectInfo
impl Clone for ConnectInfo
source§fn clone(&self) -> ConnectInfo
fn clone(&self) -> ConnectInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more