Trait subspedia_rs::Request [−][src]
pub trait Request { type Response: DeserializeOwned + Debug + Send; fn url(&self) -> Cow<'static, str>; }
Trait that requests have to implement.
Associated Types
type Response: DeserializeOwned + Debug + Send
Required Methods
fn url(&self) -> Cow<'static, str>
Return api url based on type of response that are you looking for.
Implementors
impl Request for ReqSerieTraduzione type Response = SerieTraduzione;
impl Request for ReqElencoSerie type Response = Serie;
impl Request for ReqUltimiSottotitoli type Response = Sottotitolo;
impl Request for ReqSottotitoliSerie type Response = Sottotitolo;