pub trait EndpointWithId: Endpoint {
type IdType: Display;
// Provided methods
fn format_id(id: &Self::IdType) -> String { ... }
fn format_url(id: &str) -> String { ... }
}Required Associated Types§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.