1use std::fmt::Display; 2 3pub trait EndpointAction: Display { 4 /// The allowed HTTP methods for the endpoint. 5 fn allowed_http_methods(&self) -> &str; 6 7 /// The endpoint's response content type. 8 fn response_content_type(&self) -> &str; 9}