Skip to main content

RoleSetters

Trait RoleSetters 

Source
pub trait RoleSetters: Holds<Role> + Sized {
    // Required methods
    fn name(self, value: impl Into<String>) -> Self;
    fn actions(self, value: impl Into<Vec<String>>) -> Self;
}
Expand description

The typed setters of Role, for any builder that holds its settings.

Required Methods§

Source

fn name(self, value: impl Into<String>) -> Self

The name rules refer to.

Source

fn actions(self, value: impl Into<Vec<String>>) -> Self

The actions it allows, such as document.read; none twice.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<__B> RoleSetters for __B
where __B: Holds<Role>,