Struct egg_mode::search::SearchResult
[−]
[src]
pub struct SearchResult<'a> { pub statuses: Vec<Tweet>, pub query: String, pub max_id: u64, pub since_id: u64, // some fields omitted }
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
Methods
impl<'a> SearchResult<'a>
[src]
fn older(&self, token: &Token, handle: &'a Handle) -> SearchFuture<'a>
[src]
Load the next page of search results for the same query.
fn newer(&self, token: &Token, handle: &'a Handle) -> SearchFuture<'a>
[src]
Load the previous page of search results for the same query.