Struct egg_mode::search::SearchResult[][src]

pub struct SearchResult {
    pub statuses: Vec<Tweet>,
    pub query: String,
    pub max_id: u64,
    pub since_id: u64,
    // some fields omitted
}
Expand description

Represents a page of search results, along with metadata to request the next or previous page.

Fields

statuses: Vec<Tweet>

The list of statuses in this page of results.

query: String

The query used to generate this page of results. Note that changing this will not affect the next_page method.

max_id: u64

Last tweet id in this page of results. This id can be used in SearchBuilder::since_tweet

since_id: u64

First tweet id in this page of results. This id can be used in SearchBuilder::since_tweet

Implementations

Load the next page of search results for the same query.

Load the previous page of search results for the same query.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.