[][src]Struct mongodb::topology::monitor::IsMasterResult

pub struct IsMasterResult {
    pub ok: bool,
    pub is_master: bool,
    pub max_bson_object_size: i64,
    pub max_message_size_bytes: i64,
    pub local_time: Option<DateTime<Utc>>,
    pub min_wire_version: i64,
    pub max_wire_version: i64,
    pub msg: String,
    pub is_replica_set: bool,
    pub is_secondary: bool,
    pub me: Option<Host>,
    pub hosts: Vec<Host>,
    pub passives: Vec<Host>,
    pub arbiters: Vec<Host>,
    pub arbiter_only: bool,
    pub tags: BTreeMap<String, String>,
    pub set_name: String,
    pub election_id: Option<ObjectId>,
    pub primary: Option<Host>,
    pub hidden: bool,
    pub set_version: Option<i64>,
}

The result of an isMaster operation.

Fields

ok: boolis_master: boolmax_bson_object_size: i64max_message_size_bytes: i64local_time: Option<DateTime<Utc>>min_wire_version: i64max_wire_version: i64msg: String

Shard-specific. mongos instances will add this field to the isMaster reply, and it will contain the value "isdbgrid".

is_replica_set: boolis_secondary: boolme: Option<Host>hosts: Vec<Host>passives: Vec<Host>arbiters: Vec<Host>arbiter_only: booltags: BTreeMap<String, String>set_name: Stringelection_id: Option<ObjectId>primary: Option<Host>hidden: boolset_version: Option<i64>

Methods

impl IsMasterResult[src]

pub fn new(doc: Document) -> Result<IsMasterResult>[src]

Parses an isMaster response document from the server.

Trait Implementations

impl Eq for IsMasterResult[src]

impl Clone for IsMasterResult[src]

impl PartialEq<IsMasterResult> for IsMasterResult[src]

impl Debug for IsMasterResult[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self