Module biscuit_auth::parser
source · Expand description
Datalog text format parsing
all of the parsers are usable with std::convert::TryFrom so they can be used
as follows:
use std::convert::TryInto;
use biscuit_auth::builder::Fact;
let f: Fact = "test(\"data\")".try_into().expect("parse error");All of the methods in BiscuitBuilder and BlockBuilder can take strings as arguments too
Structs§
Enums§
Functions§
- parse an allow rule
- parse a Datalog check
- parse a Datalog check body
- parse a deny rule
- Top-lever parser for an expression. Expression parsers are layered in order to support operator precedence (see https://en.wikipedia.org/wiki/Operator-precedence_parser).
- parse a Datalog fact
- parse an allow or deny rule
- parse a Datalog rule
- parse a Datalog rule body