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§
Sourcefn scope_kinds(self, value: impl Into<Vec<String>>) -> Self
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.
Sourcefn limits(self, value: impl Into<RoleLimits>) -> Self
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".