pub struct CratesIoClient { /* private fields */ }Implementations§
Source§impl CratesIoClient
impl CratesIoClient
pub fn new(base_url: impl Into<String>) -> Result<Self>
pub fn with_options(options: &CratesIoClientOptions) -> Result<Self>
pub fn latest_stable_version(&self, crate_name: &str) -> Result<String>
Trait Implementations§
Source§impl Clone for CratesIoClient
impl Clone for CratesIoClient
Source§fn clone(&self) -> CratesIoClient
fn clone(&self) -> CratesIoClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for CratesIoClient
impl !UnwindSafe for CratesIoClient
impl Freeze for CratesIoClient
impl Send for CratesIoClient
impl Sync for CratesIoClient
impl Unpin for CratesIoClient
impl UnsafeUnpin for CratesIoClient
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