[][src]Struct mongodb::coll::options::FindOptions

pub struct FindOptions {
    pub allow_partial_results: bool,
    pub no_cursor_timeout: bool,
    pub oplog_replay: bool,
    pub skip: Option<i64>,
    pub limit: Option<i64>,
    pub cursor_type: CursorType,
    pub batch_size: Option<i32>,
    pub comment: Option<String>,
    pub max_time_ms: Option<i64>,
    pub modifiers: Option<Document>,
    pub projection: Option<Document>,
    pub sort: Option<Document>,
    pub read_preference: Option<ReadPreference>,
}

Options for collection queries.

Fields

allow_partial_results: boolno_cursor_timeout: booloplog_replay: boolskip: Option<i64>limit: Option<i64>cursor_type: CursorTypebatch_size: Option<i32>comment: Option<String>max_time_ms: Option<i64>modifiers: Option<Document>projection: Option<Document>sort: Option<Document>read_preference: Option<ReadPreference>

Methods

impl FindOptions[src]

pub fn new() -> Self[src]

Creates a new FindOptions struct with default parameters.

Trait Implementations

impl From<FindOptions> for Document[src]

impl Clone for FindOptions[src]

impl Default for FindOptions[src]

impl PartialEq<FindOptions> for FindOptions[src]

impl Debug for FindOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self