Struct mongodb::common::ReadPreference [] [src]

pub struct ReadPreference {
    pub mode: ReadMode,
    pub tag_sets: Vec<BTreeMap<String, String>>,


Indicates how a server should be selected during read operations.

Filters servers based on the first tag set that matches at least one server.


impl ReadPreference

Trait Implementations

impl Debug for ReadPreference

Formats the value using the given formatter.

impl Clone for ReadPreference

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more