pub struct PyPI { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Registry for PyPI
impl Registry for PyPI
Source§fn display_name(&self) -> &str
fn display_name(&self) -> &str
Human-readable registry name.
Source§fn get_package<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = RegistryResult<PackageInfo>> + Send + 'a>>
fn get_package<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = RegistryResult<PackageInfo>> + Send + 'a>>
Fetch package metadata (description, latest version, URLs).
Source§fn get_versions<'a>(
&'a self,
name: &'a str,
) -> Pin<Box<dyn Future<Output = RegistryResult<Vec<VersionInfo>>> + Send + 'a>>
fn get_versions<'a>( &'a self, name: &'a str, ) -> Pin<Box<dyn Future<Output = RegistryResult<Vec<VersionInfo>>> + Send + 'a>>
List all published versions, newest first.
Source§fn search<'a>(
&'a self,
_query: &'a str,
_limit: usize,
) -> Pin<Box<dyn Future<Output = RegistryResult<Vec<SearchResult>>> + Send + 'a>>
fn search<'a>( &'a self, _query: &'a str, _limit: usize, ) -> Pin<Box<dyn Future<Output = RegistryResult<Vec<SearchResult>>> + Send + 'a>>
Search packages by query string.
Source§fn supports_latest_version(&self) -> bool
fn supports_latest_version(&self) -> bool
Whether
get_latest_version yields a reliable result. Registries whose
versions can be ordered by semver return true. Docker Hub orders
free-form, non-semver tags by push date, so “latest” is not meaningful;
it returns false and callers should use list_versions instead.Auto Trait Implementations§
impl !RefUnwindSafe for PyPI
impl !UnwindSafe for PyPI
impl Freeze for PyPI
impl Send for PyPI
impl Sync for PyPI
impl Unpin for PyPI
impl UnsafeUnpin for PyPI
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