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.
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".