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: bool

Turns on +OK protocol acknowledgements.

pedantic: bool

Turns 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: bool

If 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: String

The implementation language of the client.

version: String

The version of the client.

protocol: Protocol

Sending 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: bool

Indicates 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: bool

Whether the client supports the usage of headers.

no_responders: bool

Whether the client supports no_responders.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more