pub struct AuditRun { /* private fields */ }Expand description
Configuration for an audit run.
Implementations§
Source§impl AuditRun
impl AuditRun
Sourcepub fn new(name: impl Into<String>, version: impl Into<String>) -> Self
pub fn new(name: impl Into<String>, version: impl Into<String>) -> Self
Begin a new audit run for the given crate name and version.
Sourcepub fn scope(self, scope: AuditScope) -> Self
pub fn scope(self, scope: AuditScope) -> Self
Set the audit scope.
Sourcepub fn audit_scope(&self) -> AuditScope
pub fn audit_scope(&self) -> AuditScope
Selected scope.
Sourcepub fn execute(&self) -> Result<AuditResult, AuditError>
pub fn execute(&self) -> Result<AuditResult, AuditError>
Execute the audit run.
In 0.9.0 this is a stub; full cargo-audit and cargo-deny
integration lands in 0.9.1.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuditRun
impl RefUnwindSafe for AuditRun
impl Send for AuditRun
impl Sync for AuditRun
impl Unpin for AuditRun
impl UnsafeUnpin for AuditRun
impl UnwindSafe for AuditRun
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