pub struct RulePathSegment {
pub fact: String,
pub doc: String,
}Expand description
A segment in a rule path representing one fact-to-document traversal
E.g., for employee.is_eligible? where employee is a fact with value doc hr_doc,
the segment would be RulePathSegment { fact: "employee", doc: "hr_doc" }
Fields§
§fact: String§doc: StringTrait Implementations§
Source§impl Clone for RulePathSegment
impl Clone for RulePathSegment
Source§fn clone(&self) -> RulePathSegment
fn clone(&self) -> RulePathSegment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RulePathSegment
impl Debug for RulePathSegment
Source§impl Hash for RulePathSegment
impl Hash for RulePathSegment
Source§impl PartialEq for RulePathSegment
impl PartialEq for RulePathSegment
impl Eq for RulePathSegment
impl StructuralPartialEq for RulePathSegment
Auto Trait Implementations§
impl Freeze for RulePathSegment
impl RefUnwindSafe for RulePathSegment
impl Send for RulePathSegment
impl Sync for RulePathSegment
impl Unpin for RulePathSegment
impl UnwindSafe for RulePathSegment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more