pub struct RuleRecord { /* private fields */ }Expand description
One completed rule’s refined outcomes, as dependent rules read them.
Implementations§
Source§impl RuleRecord
impl RuleRecord
Sourcepub fn named(&self) -> impl Iterator<Item = &ObjectId>
pub fn named(&self) -> impl Iterator<Item = &ObjectId>
Every object and resource object the rule’s outcomes or recorded selection name, sorted, possibly more than once.
Sourcepub fn unread_resources(&self) -> impl Iterator<Item = &(SourceId, String)>
pub fn unread_resources(&self) -> impl Iterator<Item = &(SourceId, String)>
Sources where the rule’s selection reached resource objects that could not be listed, with why.
Sourcepub fn verdict(&self) -> RuleVerdict
pub fn verdict(&self) -> RuleVerdict
How the rule fared as a whole.
Sourcepub fn object(&self, object: &Object) -> ObjectVerdict
pub fn object(&self, object: &Object) -> ObjectVerdict
How the rule judged object.
A finding about the object fails it. Otherwise an object left not evaluated, or whose source or project the rule reported about as a whole, or whose selection the rule could not decide, is undecided; an object the rule surely did not select is not selected, and one it selected passed. A skipped rule selected nothing. Without a recorded selection every object is undecided.
Trait Implementations§
Source§impl Clone for RuleRecord
impl Clone for RuleRecord
Source§impl Debug for RuleRecord
impl Debug for RuleRecord
Auto Trait Implementations§
impl Freeze for RuleRecord
impl RefUnwindSafe for RuleRecord
impl Send for RuleRecord
impl Sync for RuleRecord
impl Unpin for RuleRecord
impl UnsafeUnpin for RuleRecord
impl UnwindSafe for RuleRecord
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