pub struct MiniVet<'client> { /* private fields */ }Expand description
Start here
Implementations§
Source§impl<'client> MiniVet<'client>
impl<'client> MiniVet<'client>
Sourcepub fn new_with_client(client: Cow<'client, Client>) -> Self
pub fn new_with_client(client: Cow<'client, Client>) -> Self
Create a new instance of the client
Sourcepub async fn fetch_registry_from_url(
&self,
url: &str,
) -> Result<AuditSources, Error>
pub async fn fetch_registry_from_url( &self, url: &str, ) -> Result<AuditSources, Error>
The registry file doesn’t contain audits, only URLs to audit files.
Use with "https://raw.githubusercontent.com/bholley/cargo-vet/main/registry.toml" to get the default set.
Check out normalized.
Sourcepub async fn fetch_registry(&self, reg: Registry) -> Result<AuditSources, Error>
pub async fn fetch_registry(&self, reg: Registry) -> Result<AuditSources, Error>
Fetches audit files listed in the Registry.
Check out normalized.
Auto Trait Implementations§
impl<'client> Freeze for MiniVet<'client>
impl<'client> !RefUnwindSafe for MiniVet<'client>
impl<'client> Send for MiniVet<'client>
impl<'client> Sync for MiniVet<'client>
impl<'client> Unpin for MiniVet<'client>
impl<'client> !UnwindSafe for MiniVet<'client>
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