[−][src]Struct crates_io::Registry
Methods
impl Registry
[src]
pub fn new(host: String, token: Option<String>) -> Registry
[src]
pub fn new_handle(host: String, token: Option<String>, handle: Easy) -> Registry
[src]
pub fn host(&self) -> &str
[src]
pub fn host_is_crates_io(&self) -> bool
[src]
pub fn add_owners(&mut self, krate: &str, owners: &[&str]) -> Result<String>
[src]
pub fn remove_owners(&mut self, krate: &str, owners: &[&str]) -> Result<()>
[src]
pub fn list_owners(&mut self, krate: &str) -> Result<Vec<User>>
[src]
pub fn publish(&mut self, krate: &NewCrate, tarball: &File) -> Result<Warnings>
[src]
pub fn search(&mut self, query: &str, limit: u32) -> Result<(Vec<Crate>, u32)>
[src]
pub fn yank(&mut self, krate: &str, version: &str) -> Result<()>
[src]
pub fn unyank(&mut self, krate: &str, version: &str) -> Result<()>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Registry
impl Send for Registry
impl !Sync for Registry
impl Unpin for Registry
impl !UnwindSafe for Registry
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,