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

pub struct SearchResult {
    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

Implementations

impl SearchResult[src]

pub async fn older<'_, '_>(
    &'_ self,
    token: &'_ Token
) -> Result<Response<SearchResult>, Error>
[src]

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

pub async fn newer<'_, '_>(
    &'_ self,
    token: &'_ Token
) -> Result<Response<SearchResult>, Error>
[src]

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

Trait Implementations

impl Debug for SearchResult[src]

impl<'de> Deserialize<'de> for SearchResult[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,