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

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

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

Methods

impl IsMasterResult
[src]

Parses an isMaster response document from the server.

Trait Implementations

impl Clone for IsMasterResult
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for IsMasterResult
[src]

Formats the value using the given formatter.

impl PartialEq for IsMasterResult
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for IsMasterResult
[src]