pub struct PypiAttestationClient { /* private fields */ }Implementations§
Source§impl PypiAttestationClient
impl PypiAttestationClient
pub fn new() -> Result<Self>
Sourcepub fn fetch_provenance(
&self,
name: &str,
version: &str,
) -> Result<Option<PypiProvenance>>
pub fn fetch_provenance( &self, name: &str, version: &str, ) -> Result<Option<PypiProvenance>>
Fetch provenance for a single package version.
Returns None if the package has no attestation.
Sourcepub fn enrich_pypi_deps(&self, deps: &mut [DependencySignatureEvidence])
pub fn enrich_pypi_deps(&self, deps: &mut [DependencySignatureEvidence])
Enrich PyPI dependencies in-place with provenance from the attestation API. Uses bounded parallel fetching.
Auto Trait Implementations§
impl Freeze for PypiAttestationClient
impl !RefUnwindSafe for PypiAttestationClient
impl Send for PypiAttestationClient
impl Sync for PypiAttestationClient
impl Unpin for PypiAttestationClient
impl UnsafeUnpin for PypiAttestationClient
impl !UnwindSafe for PypiAttestationClient
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