useserde_json::Value;pubmodclient_tokens;pubmodcollections;pubmodplatforms;pubmodroms;pubmodsystem;pubmodtasks;/// 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.
pubtraitEndpoint{/// The expected output type of this endpoint, which must be deserializable from JSON.
typeOutput;/// Returns the HTTP method (e.g., "GET", "POST", "PUT", "DELETE").
fnmethod(&self)->&'staticstr;/// Returns the path relative to the base URL (e.g., "/api/roms").
fnpath(&self)-> String;/// Returns the query parameters as a list of key/value pairs.
/// Defaults to an empty list.
fnquery(&self)->Vec<(String, String)>{Vec::new()}/// Returns the optional JSON request body.
/// Defaults to `None`.
fnbody(&self)->Option<Value>{None}}