[−][src]Struct egg_mode::search::SearchBuilder
Represents a tweet search query before being sent.
Methods
impl<'a> SearchBuilder<'a>
[src]
impl<'a> SearchBuilder<'a>
pub fn lang(self, lang: &'a str) -> Self
[src]
pub fn lang(self, lang: &'a str) -> Self
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]
pub fn result_type(self, result_type: ResultType) -> Self
Specify the type of search results to include. The default is Recent
.
pub fn count(self, count: u32) -> Self
[src]
pub fn count(self, count: u32) -> Self
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]
pub fn until(self, year: u32, month: u32, day: u32) -> Self
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]
pub fn geocode(self, latitude: f32, longitude: f32, radius: Distance) -> Self
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 call(
self,
con_token: &Token,
access_token: &Token
) -> WebResponse<SearchResult<'a>>
[src]
pub fn call(
self,
con_token: &Token,
access_token: &Token
) -> WebResponse<SearchResult<'a>>
Finalize the search terms and return the first page of responses.
Auto Trait Implementations
impl<'a> Send for SearchBuilder<'a>
impl<'a> Send for SearchBuilder<'a>
impl<'a> Sync for SearchBuilder<'a>
impl<'a> Sync for SearchBuilder<'a>
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<T> Typeable for T where
T: Any,
[src]
impl<T> Typeable for T where
T: Any,