ServerInfo

Struct ServerInfo 

Source
pub struct ServerInfo {
Show 25 fields pub id: String, pub name: String, pub version: String, pub go_version: String, pub host: IpAddr, pub port: NonZero<u16>, pub supports_headers: bool, pub max_payload: NonZero<u32>, pub protocol_version: u32, pub client_id: Option<u64>, pub auth_required: bool, pub tls_required: bool, pub tls_verify: bool, pub tls_available: bool, pub connect_urls: Vec<ServerAddr>, pub websocket_connect_urls: Vec<ServerAddr>, pub lame_duck_mode: bool, pub git_commit: Option<String>, pub supports_jetstream: bool, pub ip: Option<IpAddr>, pub client_ip: Option<IpAddr>, pub nonce: Option<String>, pub cluster_name: Option<String>, pub domain: Option<String>, pub non_standard: NonStandardServerInfo,
}

Fields§

§id: String§name: String§version: String§go_version: String§host: IpAddr§port: NonZero<u16>§supports_headers: bool§max_payload: NonZero<u32>§protocol_version: u32§client_id: Option<u64>§auth_required: bool§tls_required: bool§tls_verify: bool§tls_available: bool§connect_urls: Vec<ServerAddr>§websocket_connect_urls: Vec<ServerAddr>§lame_duck_mode: bool§git_commit: Option<String>§supports_jetstream: bool§ip: Option<IpAddr>§client_ip: Option<IpAddr>§nonce: Option<String>§cluster_name: Option<String>§domain: Option<String>§non_standard: NonStandardServerInfo

Trait Implementations§

Source§

impl Debug for ServerInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ServerInfo

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for ServerInfo

Source§

fn eq(&self, other: &ServerInfo) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for ServerInfo

Source§

impl StructuralPartialEq for ServerInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

impl<T> ErasedDestructor for T
where T: 'static,