Skip to main content

RolePolicySetters

Trait RolePolicySetters 

Source
pub trait RolePolicySetters: Holds<RolePolicy> + Sized {
    // Required methods
    fn scope_kinds(self, value: impl Into<Vec<String>>) -> Self;
    fn roles(self, value: impl Into<Vec<Role>>) -> Self;
    fn rules(self, value: impl Into<Vec<Rule>>) -> Self;
    fn limits(self, value: impl Into<RoleLimits>) -> Self;
}
Expand description

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

Required Methods§

Source

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

The kinds a rule scope may use (site allows site:north); empty allows any kind. * is always allowed.

Source

fn roles(self, value: impl Into<Vec<Role>>) -> Self

The roles.

Source

fn rules(self, value: impl Into<Vec<Rule>>) -> Self

The rules, in the order they are tried.

Source

fn limits(self, value: impl Into<RoleLimits>) -> Self

Bounds on the policy’s size; RoleLimits::default when absent.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<__B> RolePolicySetters for __B
where __B: Holds<RolePolicy>,