Skip to main content

RoleLimitsSetters

Trait RoleLimitsSetters 

Source
pub trait RoleLimitsSetters: Holds<RoleLimits> + Sized {
    // Required methods
    fn roles(self, value: impl Into<Limit>) -> Self;
    fn actions_per_role(self, value: impl Into<Limit>) -> Self;
    fn rules(self, value: impl Into<Limit>) -> Self;
    fn scope_kinds(self, value: impl Into<Limit>) -> Self;
    fn name_bytes(self, value: impl Into<Limit>) -> Self;
    fn ancestors(self, value: impl Into<Limit>) -> Self;
}
Expand description

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

Required Methods§

Source

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

Roles a policy defines.

Source

fn actions_per_role(self, value: impl Into<Limit>) -> Self

Actions one role lists.

Source

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

Rules a policy holds.

Source

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

Scope kinds a policy allows.

Source

fn name_bytes(self, value: impl Into<Limit>) -> Self

Bytes in a role, action, subject value, scope kind or scope id.

Source

fn ancestors(self, value: impl Into<Limit>) -> Self

Ancestors one request names; a request naming more is an error, never a denial.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<__B> RoleLimitsSetters for __B
where __B: Holds<RoleLimits>,