[][src]Struct nats_types::ConnectionInformation

pub struct ConnectionInformation {
    pub verbose: bool,
    pub pedantic: bool,
    pub tls_required: bool,
    pub auth_token: Option<String>,
    pub user: Option<String>,
    pub pass: Option<String>,
    pub lang: String,
    pub name: String,
    pub version: String,
    pub protocol: Option<u64>,
    pub sig: Option<String>,
    pub jwt: Option<String>,
}

Represents server connection information sent by the client to configure the connection immediately after connecting. The NATS protocol definition for this is as follows:

CONNECT [json]

Fields

verbose: boolpedantic: booltls_required: boolauth_token: Option<String>user: Option<String>pass: Option<String>lang: Stringname: Stringversion: Stringprotocol: Option<u64>sig: Option<String>jwt: Option<String>

Methods

impl ConnectionInformation[src]

pub fn new(
    verbose: bool,
    pedantic: bool,
    tls_required: bool,
    auth_token: Option<String>,
    user: Option<String>,
    pass: Option<String>,
    lang: String,
    name: String,
    version: String,
    protocol: Option<u64>,
    sig: Option<String>,
    jwt: Option<String>
) -> ConnectionInformation
[src]

Constructor to create a new connection information struct

Trait Implementations

impl Clone for ConnectionInformation[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<ConnectionInformation> for ConnectionInformation[src]

impl Display for ConnectionInformation[src]

impl FromStr for ConnectionInformation[src]

type Err = NatsParseError

The associated error which can be returned from parsing.

impl Debug for ConnectionInformation[src]

impl Serialize for ConnectionInformation[src]

impl<'de> Deserialize<'de> for ConnectionInformation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]