Struct mongodb::options::ReadConcern [−][src]
#[non_exhaustive]pub struct ReadConcern {
pub level: ReadConcernLevel,
// some fields omitted
}
Expand description
Specifies the consistency and isolation properties of read operations from replica sets and replica set shards.
See the documentation here for more information about read concerns.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.level: ReadConcernLevel
The level of the read concern.
Implementations
Creates a read concern with level “majority”. See the specific documentation for this read concern level here.
Creates a read concern with level “local”. See the specific documentation for this read concern level here.
Creates a read concern with level “linearizable”. See the specific documentation for this read concern level here.
Creates a read concern with level “available”. See the specific documentation for this read concern level here.
Creates a read concern with level “snapshot”. See the specific documentation for this read concern level here.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ReadConcern
impl Send for ReadConcern
impl Sync for ReadConcern
impl Unpin for ReadConcern
impl UnwindSafe for ReadConcern
Blanket Implementations
Mutably borrows from an owned value. Read more