pub struct PolicyEngine { /* private fields */ }Expand description
Evaluates the default v0.2 policy rule set.
Implementations§
Source§impl PolicyEngine
impl PolicyEngine
Sourcepub fn evaluate(
&self,
snapshot: &RepoSnapshot,
changed_files: &[RepoRelativePath],
) -> Result<Vec<Diagnostic>, RepoctlError>
pub fn evaluate( &self, snapshot: &RepoSnapshot, changed_files: &[RepoRelativePath], ) -> Result<Vec<Diagnostic>, RepoctlError>
Evaluates all rules against a snapshot.
Trait Implementations§
Source§impl Clone for PolicyEngine
impl Clone for PolicyEngine
Source§impl Debug for PolicyEngine
impl Debug for PolicyEngine
Auto Trait Implementations§
impl !RefUnwindSafe for PolicyEngine
impl !UnwindSafe for PolicyEngine
impl Freeze for PolicyEngine
impl Send for PolicyEngine
impl Sync for PolicyEngine
impl Unpin for PolicyEngine
impl UnsafeUnpin for PolicyEngine
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