pub struct OsvClient { /* private fields */ }Expand description
OSV API client
Implementations§
Source§impl OsvClient
impl OsvClient
Sourcepub async fn query(
&self,
package: &str,
version: &str,
) -> Result<Vec<Vulnerability>>
pub async fn query( &self, package: &str, version: &str, ) -> Result<Vec<Vulnerability>>
Query vulnerabilities for a single package
Sourcepub async fn query_batch(
&self,
packages: &[(&str, &str)],
) -> Result<HashMap<String, Vec<Vulnerability>>>
pub async fn query_batch( &self, packages: &[(&str, &str)], ) -> Result<HashMap<String, Vec<Vulnerability>>>
Query vulnerabilities for multiple packages in batch Uses batch API for detection, then fetches full details for affected packages
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OsvClient
impl !RefUnwindSafe for OsvClient
impl Send for OsvClient
impl Sync for OsvClient
impl Unpin for OsvClient
impl !UnwindSafe for OsvClient
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