GetRequest

Trait GetRequest 

Source
pub trait GetRequest: Serialize + Debug {
    type Response: TryInto<Self::Output, Error = Error> + DeserializeOwned;
    type Output;

    // Required method
    fn endpoint(&self) -> Cow<'static, str>;
}
Expand description

Represents a GET request.

Required Associated Types§

Source

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

The type returned by the Scoop.it API.

It must be converible to this trait Output type.

Source

type Output

The type returned by the client

Required Methods§

Source

fn endpoint(&self) -> Cow<'static, str>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§