pub trait Endpoint {
// Required methods
fn method(&self) -> Method;
fn endpoint(&self) -> Cow<'static, str>;
// Provided methods
fn parameters(&self) -> QueryParams<'_> { ... }
fn body(&self) -> Result<Option<(&'static str, Vec<u8>)>, BodyError> { ... }
}Required Methods§
Provided Methods§
Sourcefn parameters(&self) -> QueryParams<'_>
fn parameters(&self) -> QueryParams<'_>
Parameters to hit the endpoint with