pub struct SearchResult {
pub statuses: Vec<Tweet>,
pub query: String,
pub max_id: u64,
pub since_id: u64,
/* private fields */
}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: StringThe query used to generate this page of results. Note that changing this will not affect the
next_page method.
max_id: u64Last tweet id in this page of results. This id can be used in SearchBuilder::since_tweet
since_id: u64First tweet id in this page of results. This id can be used in SearchBuilder::since_tweet
Implementations§
Source§impl SearchResult
impl SearchResult
Trait Implementations§
Source§impl Debug for SearchResult
impl Debug for SearchResult
Source§impl<'de> Deserialize<'de> for SearchResult
impl<'de> Deserialize<'de> for SearchResult
Source§fn deserialize<D>(deser: D) -> Result<SearchResult, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deser: D) -> Result<SearchResult, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SearchResult
impl RefUnwindSafe for SearchResult
impl Send for SearchResult
impl Sync for SearchResult
impl Unpin for SearchResult
impl UnwindSafe for SearchResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more