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.
Implementations of this trait define the structure and behavior of a specific API call, including its HTTP method, path, query parameters, and body.