Skip to main content

MatchRuleSetters

Trait MatchRuleSetters 

Source
pub trait MatchRuleSetters: Holds<MatchRule> + Sized {
    // Required methods
    fn by(self, value: impl Into<String>) -> Self;
    fn template(self, value: impl Into<String>) -> Self;
    fn pins(self, value: impl Into<Option<String>>) -> Self;
    fn domain(self, value: impl Into<Option<String>>) -> Self;
}
Expand description

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

Required Methods§

Source

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

What the rendered text is: name, email or id (the directory attribute it is looked up by), or filter (an LDAP filter, values escaped).

Source

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

Text with {claim} and {claim|filter|...} parts; {{ and }} are braces. The filters are lower, upper, local (before the last @) and domain (after it). It names at least one claim. Stripping a realm with local loses what ties the name to it, so such a rule also needs domain or pins.

Source

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

The name of a pin source (given to the builder): the one account this rule finds must also hold one of the certificate’s pins there.

Source

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

The realm a local filter strips: a claim value passed through local counts only when it ends @<domain> (any case), so alice@evil.example is not alice. A rule that strips a domain says which, or names pins; one with no local has none.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<__B> MatchRuleSetters for __B
where __B: Holds<MatchRule>,