[][src]Trait scoopit_api::requests::GetRequest

pub trait GetRequest: Serialize {
    type Response: TryInto<Self::Output, Error = Error> + DeserializeOwned;
    type Output;
    pub fn endpoint() -> &'static str;
}

Represents a GET request.

Associated Types

type Response: TryInto<Self::Output, Error = Error> + DeserializeOwned[src]

The type returned by the Scoop.it API.

It must be converible to this trait Output type.

type Output[src]

The type returned by the client

Loading content...

Required methods

pub fn endpoint() -> &'static str[src]

Loading content...

Implementors

impl GetRequest for GetProfileRequest[src]

type Response = UserResponse

type Output = User

impl GetRequest for GetTopicRequest[src]

type Response = TopicResponse

type Output = Topic

impl GetRequest for SearchRequest[src]

type Response = SearchResponse

type Output = SearchResults

Loading content...