Trait proxer::Endpoint [] [src]

pub trait Endpoint {
    type Parameter: Serialize + Debug + Clone;
    type ResponseType: Debug + Clone + DeserializeOwned;

    const URL: &'static str;

    fn new(_: Client, _: Self::Parameter) -> Self;
fn params_mut(&mut self) -> &mut Self::Parameter;
fn client(&self) -> Client;
fn url(&self) -> String;
fn parse(&self, _: Value) -> Result<Self::ResponseType, Error>; }

Every struct that is an endpoint, implements this trait.

Associated Types

Associated Constants

Required Methods

Implementors