[][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 Default for FindOptions[src]

impl Clone for FindOptions[src]

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

Performs copy-assignment from source. Read more

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<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> DebugAny for T where
    T: Any + Debug
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> UnsafeAny for T where
    T: Any