Module biscuit_auth::parser[][src]

Datalog text format parsing

all of the parsers are usable with TryFrom so they can be used as follows:

use std::convert::TryInto;
use biscuit_auth::token::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 an allow rule

fact

parse a Datalog fact

parse_source
policy

parse an allow rule

rule

parse a Datalog rule

rule_body

parse a Datalog rule body

sep