pub trait Endpoint<ResultType = (), QueryType = (), BodyType = ()> where
ResultType: ApiResult,
QueryType: Serialize,
BodyType: Serialize, {
fn method(&self) -> Method;
fn path(&self) -> String;
fn query(&self) -> Option<QueryType> { ... }
fn body(&self) -> Option<BodyType> { ... }
fn url(&self, environment: &Environment) -> Url { ... }
fn content_type(&self) -> String { ... }
}