pub trait Resource: Display {
// Required method
fn to_static_str(&self) -> &'static str;
}Expand description
A trait that provides a common interface for all resources.
Required Methods§
Sourcefn to_static_str(&self) -> &'static str
fn to_static_str(&self) -> &'static str
Returns a static string representation of the resource.