pub enum SearchSource {
X {
excluded_x_handles: Option<Vec<String>>,
included_x_handles: Option<Vec<String>>,
x_handles: Option<Vec<String>>,
post_favorite_count: Option<i32>,
post_view_count: Option<i32>,
},
Web {
allowed_websites: Option<Vec<String>>,
excluded_websites: Option<Vec<String>>,
country: Option<String>,
safe_search: Option<bool>,
},
News {
country: Option<String>,
excluded_websites: Option<Vec<String>>,
},
Rss {
urls: Option<Vec<String>>,
},
}Expand description
Search source for realtime data.
Variants§
X
Search X (Twitter).
Fields
Web
Search the web.
Fields
News
Search news sources.
Fields
Rss
Search knowledge bases.
Trait Implementations§
Source§impl Clone for SearchSource
impl Clone for SearchSource
Source§fn clone(&self) -> SearchSource
fn clone(&self) -> SearchSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SearchSource
impl Debug for SearchSource
Source§impl Default for SearchSource
impl Default for SearchSource
Source§impl<'de> Deserialize<'de> for SearchSource
impl<'de> Deserialize<'de> for SearchSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SearchSource
impl PartialEq for SearchSource
Source§impl Serialize for SearchSource
impl Serialize for SearchSource
impl StructuralPartialEq for SearchSource
Auto Trait Implementations§
impl Freeze for SearchSource
impl RefUnwindSafe for SearchSource
impl Send for SearchSource
impl Sync for SearchSource
impl Unpin for SearchSource
impl UnwindSafe for SearchSource
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