pub struct RegistryClient { /* private fields */ }Implementations§
Source§impl RegistryClient
impl RegistryClient
pub fn new(base: &str) -> Result<Self, RegistryError>
pub fn publish( &self, manifest: &PackageManifest, token: &str, archive: &PackageArchive, readme: Option<&str>, ) -> Result<PublishResponse, RegistryError>
pub fn package_details( &self, name: &str, ) -> Result<PackageDetails, RegistryError>
pub fn search_packages( &self, params: &SearchParameters, ) -> Result<PackageSearchResponse, RegistryError>
pub fn download_package( &self, name: &str, version: &str, ) -> Result<DownloadedArchive, RegistryError>
Trait Implementations§
Source§impl Clone for RegistryClient
impl Clone for RegistryClient
Source§fn clone(&self) -> RegistryClient
fn clone(&self) -> RegistryClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RegistryClient
impl RefUnwindSafe for RegistryClient
impl Send for RegistryClient
impl Sync for RegistryClient
impl Unpin for RegistryClient
impl UnsafeUnpin for RegistryClient
impl UnwindSafe for RegistryClient
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