[−][src]Struct egg_mode::search::SearchBuilder
Represents a tweet search query before being sent.
Implementations
impl SearchBuilder
[src]
pub fn lang<S: Into<Cow<'static, str>>>(self, lang: S) -> Self
[src]
Restrict search results to those that have been machine-parsed as the given two-letter language code.
pub fn result_type(self, result_type: ResultType) -> Self
[src]
Specify the type of search results to include. The default is Recent
.
pub fn count(self, count: u32) -> Self
[src]
Set the number of tweets to return per-page, up to a maximum of 100. The default is 15.
pub fn until(self, year: u32, month: u32, day: u32) -> Self
[src]
Returns tweets created before the given date. Keep in mind that search is limited to the last 7 days of results, so giving a date here that's older than a week will return no results.
pub fn geocode(self, latitude: f32, longitude: f32, radius: Distance) -> Self
[src]
Restricts results to users located within the given radius of the given coordinate. This is preferably populated from location-tagged tweets, but can be filled in from the user's profile as a fallback.
pub fn since_tweet(self, since_id: u64) -> Self
[src]
Restricts results to those with higher IDs than (i.e. that were posted after) the given tweet ID.
pub fn max_tweet(self, max_id: u64) -> Self
[src]
Restricts results to those with IDs no higher than (i.e. were posted earlier than) the given tweet ID. Will include the given tweet in search results.
pub async fn call<'_>(
self,
token: &'_ Token
) -> Result<Response<SearchResult>, Error>
[src]
self,
token: &'_ Token
) -> Result<Response<SearchResult>, Error>
Finalize the search terms and return the first page of responses.
Auto Trait Implementations
impl RefUnwindSafe for SearchBuilder
impl Send for SearchBuilder
impl Sync for SearchBuilder
impl Unpin for SearchBuilder
impl UnwindSafe for SearchBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,