Skip to main content

RuleSetters

Trait RuleSetters 

Source
pub trait RuleSetters: Holds<Rule> + Sized {
    // Required methods
    fn subject(self, value: impl Into<String>) -> Self;
    fn scope(self, value: impl Into<String>) -> Self;
    fn role(self, value: impl Into<String>) -> Self;
    fn propagate(self, value: bool) -> Self;
}
Expand description

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

Required Methods§

Source

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

account:<name>, person:<id>, group:<name> or any:signed-in, the last matching every subject a sign-in or key resolved (never one with no identity). No other any: name exists.

Source

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

*, or <kind>:<id> with the kind among the policy’s scope kinds.

Source

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

The name of a role the policy defines.

Source

fn propagate(self, value: bool) -> Self

Whether it also matches a request that names scope among its ancestors; true unless configured. * matches every request either way.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<__B> RuleSetters for __B
where __B: Holds<Rule>,