Struct biscuit_auth::builder::Rule
source · [−]pub struct Rule {
pub head: Predicate,
pub body: Vec<Predicate>,
pub expressions: Vec<Expression>,
pub variables: Option<HashMap<String, Option<Term>>>,
}Expand description
Builder for a Datalog rule
Fields
head: Predicatebody: Vec<Predicate>expressions: Vec<Expression>variables: Option<HashMap<String, Option<Term>>>Implementations
sourceimpl Rule
impl Rule
pub fn new(
head: Predicate,
body: Vec<Predicate>,
expressions: Vec<Expression>
) -> Rule
pub fn convert(&self, symbols: &mut SymbolTable) -> Rule
pub fn convert_from(r: &Rule, symbols: &SymbolTable) -> Self
pub fn validate_variables(&self) -> Result<(), String>
Trait Implementations
impl StructuralPartialEq for Rule
Auto Trait Implementations
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more