Struct mongodb::common::ReadPreference
[−]
[src]
pub struct ReadPreference { pub mode: ReadMode, pub tag_sets: Vec<BTreeMap<String, String>>, }
Fields
mode: ReadMode
Indicates how a server should be selected during read operations.
tag_sets: Vec<BTreeMap<String, String>>
Filters servers based on the first tag set that matches at least one server.
Methods
impl ReadPreference
[src]
fn new(mode: ReadMode,
tag_sets: Option<Vec<BTreeMap<String, String>>>)
-> ReadPreference
tag_sets: Option<Vec<BTreeMap<String, String>>>)
-> ReadPreference
fn to_document(&self) -> Document
Trait Implementations
impl Debug for ReadPreference
[src]
impl Clone for ReadPreference
[src]
fn clone(&self) -> ReadPreference
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more