Struct mongodb::common::ReadPreference [−][src]
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]
impl ReadPreference
pub fn new(
mode: ReadMode,
tag_sets: Option<Vec<BTreeMap<String, String>>>
) -> ReadPreference
[src]
pub fn new(
mode: ReadMode,
tag_sets: Option<Vec<BTreeMap<String, String>>>
) -> ReadPreference
pub fn to_document(&self) -> Document
[src]
pub fn to_document(&self) -> Document
Trait Implementations
impl Debug for ReadPreference
[src]
impl Debug for ReadPreference
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ReadPreference
[src]
impl Clone for ReadPreference
fn clone(&self) -> ReadPreference
[src]
fn clone(&self) -> ReadPreference
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for ReadPreference
impl Send for ReadPreference
impl Sync for ReadPreference
impl Sync for ReadPreference