[−][src]Struct scoopit_api::requests::SearchRequest
Perform a search.
Maps parameters of https://www.scoop.it/dev/api/1/urls#search
Documentation of each field comes from the page above. Default values documented are used only
ff the field is not present (None
), Default
implementation for this struct may differ from
Scoop.it defaults to avoid retrieving the world while only looking at the user profile.
Fields
search_type: SearchRequestType
string - type of object searched: "user", "topic" or "post"
query: String
string - the search query
count: Option<u32>
int optional, default to 50 - the number of item per page
page: Option<u32>
int optional, default to 0 -the page number to return, the first page is 0
lang: Option<String>
string optional, default to "en" - the language of the content to search into
topic_id: Option<u32>
long optional - the id of the topic to search posts into
bool optional, default to true - returns or not list of tags for each returned topic / post. only for type="topic" or type="post"
get_creator: bool
bool optional, default to true - returns or not creator of each returned topic. only for type="topic"
get_stats: bool
bool optional, default to true - returns or not stats for each returned topic. only for type="topic"
bool optional, default to true - returns or not tags for topic of each returned post. only for type="post"
get_stats_for_topic: bool
bool optional, default to true - returns or not stats for topic of each returned post. only for type="post"
Trait Implementations
impl Debug for SearchRequest
[src]
impl Default for SearchRequest
[src]
impl GetRequest for SearchRequest
[src]
type Response = SearchResponse
The type returned by the Scoop.it API. Read more
type Output = SearchResults
The type returned by the client
pub fn endpoint() -> &'static str
[src]
impl Serialize for SearchRequest
[src]
Auto Trait Implementations
impl RefUnwindSafe for SearchRequest
impl Send for SearchRequest
impl Sync for SearchRequest
impl Unpin for SearchRequest
impl UnwindSafe for SearchRequest
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,