Permission

Trait Permission 

Source
pub trait Permission {
    // Required method
    fn name(self) -> &'static str;
}
Expand description

Represents possible permissions on a Resource Easiest way to implement is implementing Into<&'static str> for your enum, which can builder achieved with strum::IntoStaticStr

Required Methods§

Source

fn name(self) -> &'static str

Implementors§

Source§

impl<S> Permission for S
where S: Into<&'static str>,