[][src]Struct nats_types::ServerInformation

pub struct ServerInformation {
    pub server_id: String,
    pub version: String,
    pub proto: Option<usize>,
    pub go: String,
    pub host: String,
    pub port: u64,
    pub auth_required: bool,
    pub tls_required: bool,
    pub max_payload: u64,
    pub client_id: Option<usize>,
    pub connect_urls: Option<Vec<String>>,
    pub nonce: Option<String>,
}

Represents a NATS server information message, defined according to the NATS protocol documentation:

INFO {["option_name":option_value],...}

Fields

server_id: Stringversion: Stringproto: Option<usize>go: Stringhost: Stringport: u64auth_required: booltls_required: boolmax_payload: u64client_id: Option<usize>connect_urls: Option<Vec<String>>nonce: Option<String>

Methods

impl ServerInformation[src]

pub fn new(
    server_id: String,
    version: String,
    proto: Option<usize>,
    go: String,
    host: String,
    port: u64,
    auth_required: bool,
    tls_required: bool,
    max_payload: u64,
    client_id: Option<usize>,
    connect_urls: Option<Vec<String>>,
    nonce: Option<String>
) -> ServerInformation
[src]

Constructor to create a new server information

Trait Implementations

impl PartialEq<ServerInformation> for ServerInformation[src]

impl Clone for ServerInformation[src]

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

Performs copy-assignment from source. Read more

impl Display for ServerInformation[src]

impl Debug for ServerInformation[src]

impl FromStr for ServerInformation[src]

type Err = NatsParseError

The associated error which can be returned from parsing.

impl Serialize for ServerInformation[src]

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

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

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

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> Any for T where
    T: 'static + ?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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]