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

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

Fields

Indicates how a server should be selected during read operations.

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

Methods

impl ReadPreference
[src]

Trait Implementations

impl Debug for ReadPreference
[src]

Formats the value using the given formatter.

impl Clone for ReadPreference
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more