Struct biscuit_auth::builder::BlockBuilder
source ·
[−]pub struct BlockBuilder {
pub facts: Vec<Fact>,
pub rules: Vec<Rule>,
pub checks: Vec<Check>,
pub context: Option<String>,
}Expand description
creates a Block content to append to an existing token
Fields
facts: Vec<Fact>rules: Vec<Rule>checks: Vec<Check>context: Option<String>Implementations
pub fn add_fact<F: TryInto<Fact>>(&mut self, fact: F) -> Result<(), Token> where
Token: From<<F as TryInto<Fact>>::Error>,
pub fn add_rule<R: TryInto<Rule>>(&mut self, rule: R) -> Result<(), Token> where
Token: From<<R as TryInto<Rule>>::Error>,
pub fn add_check<C: TryInto<Check>>(&mut self, check: C) -> Result<(), Token> where
Token: From<<C as TryInto<Check>>::Error>,
replace a variable with the term argument
checks the presence of a fact resource($resource)
checks the presence of a fact operation($operation)
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for BlockBuilder
impl Send for BlockBuilder
impl Sync for BlockBuilder
impl Unpin for BlockBuilder
impl UnwindSafe for BlockBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
