Module 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§

Error
SourceResult

Enums§

Expr

Functions§

allow
parse an allow rule
check
parse a Datalog check
check_body
parse a Datalog check body
deny
parse a deny rule
expr
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).
fact
parse a Datalog fact
fact_inner
parse_block_source
parse_source
policy
parse an allow or deny rule
public_key
rule
parse a Datalog rule
rule_body
parse a Datalog rule body
rule_inner
sep