[−][src]Struct mongodb::topology::monitor::IsMasterResult
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: StringShard-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: boolset_name: Stringelection_id: Option<ObjectId>primary: Option<Host>set_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]
fn clone(&self) -> IsMasterResult[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl PartialEq<IsMasterResult> for IsMasterResult[src]
fn eq(&self, other: &IsMasterResult) -> bool[src]
fn ne(&self, other: &IsMasterResult) -> bool[src]
impl Debug for IsMasterResult[src]
Auto Trait Implementations
impl Unpin for IsMasterResult
impl Sync for IsMasterResult
impl Send for IsMasterResult
impl UnwindSafe for IsMasterResult
impl RefUnwindSafe for IsMasterResult
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Same<T> for T
type Output = T
Should always be Self