Struct quandl_v3::prelude::SearchMetadata [] [src]

pub struct SearchMetadata {
    pub query: String,
    pub per_page: usize,
    pub current_page: usize,
    pub prev_page: Option<usize>,
    pub total_pages: usize,
    pub total_count: usize,
    pub next_page: Option<usize>,
    pub current_first_item: Option<usize>,
    pub current_last_item: Option<usize>,
}

Some queries, namely those which list datasets or databases metadata, often return some metadata about the search itself. This is a structure to hold that metadata.

Fields

A string of the search keywords submitted formatted as format!("{}+{}+...+{}", keyword_1, keyword_2, ..., keyword_n).

The number of search result per page.

The current page of result that was returned by this query.

The number of the previous page, unless there is no previous page.

The total number of pages that can be queried.

The total number of search result returned.

The number of the next page, unless there is no next page.

Index of the first result on the current page, with respect to the total number of results.

Index of the last result on the current page, with respect to the total number of results.

Trait Implementations

impl Debug for SearchMetadata
[src]

Formats the value using the given formatter.

impl Clone for SearchMetadata
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for SearchMetadata
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.