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

pub struct FindOptions {
    pub allow_partial_results: bool,
    pub no_cursor_timeout: bool,
    pub op_log_replay: bool,
    pub skip: u32,
    pub limit: i32,
    pub cursor_type: CursorType,
    pub batch_size: 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: bool no_cursor_timeout: bool op_log_replay: bool skip: u32 limit: i32 cursor_type: CursorType batch_size: 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]

fn new() -> FindOptions

Creates a new FindOptions struct with default parameters.

fn with_limit(&self, limit: i32) -> FindOptions

Clone the current options struct with a new limit.

Trait Implementations

impl Clone for FindOptions
[src]

fn clone(&self) -> FindOptions

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more