Skip to main content

Request

Trait Request 

Source
pub trait Request {
    type Response: DeserializeOwned + Debug + Send;

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

Trait that requests have to implement.

Required Associated Types§

Required Methods§

Source

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

Return api url based on type of response that are you looking for.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§