pub struct PolicyResult {
pub path: PathBuf,
pub findings: Result<Vec<RuleFinding>, MemoryError>,
}Expand description
Result of evaluating a single policy .rfl file.
findings is Err when the policy itself failed to parse, evaluate, or
returned a malformed result; the file path is preserved in the error so
callers can report which policy went bad without aborting the whole run.
Fields§
§path: PathBuf§findings: Result<Vec<RuleFinding>, MemoryError>Trait Implementations§
Auto Trait Implementations§
impl Freeze for PolicyResult
impl !RefUnwindSafe for PolicyResult
impl Send for PolicyResult
impl Sync for PolicyResult
impl Unpin for PolicyResult
impl UnsafeUnpin for PolicyResult
impl !UnwindSafe for PolicyResult
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