Resource

Trait Resource 

Source
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§

Source

fn to_static_str(&self) -> &'static str

Returns a static string representation of the resource.

Implementors§