pub trait Endpoint {
type Output;
// Required methods
fn method(&self) -> &'static str;
fn path(&self) -> String;
// Provided methods
fn query(&self) -> Vec<(String, String)> { ... }
fn body(&self) -> Option<Value> { ... }
}Expand description
Generic description of a ROMM API endpoint.