[][src]Struct avocado::prelude::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<OrderedDocument>,
    pub projection: Option<OrderedDocument>,
    pub sort: Option<OrderedDocument>,
    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<OrderedDocument>projection: Option<OrderedDocument>sort: Option<OrderedDocument>read_preference: Option<ReadPreference>

Methods

impl FindOptions
[src]

pub fn new() -> FindOptions
[src]

Creates a new FindOptions struct with default parameters.

Trait Implementations

impl Clone for FindOptions
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for FindOptions
[src]

impl Default for FindOptions
[src]

impl PartialEq<FindOptions> for FindOptions
[src]

Auto Trait Implementations

impl Send for FindOptions

impl Sync for FindOptions

Blanket Implementations

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

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

impl<T> Same for T

type Output = T

Should always be Self