pub(crate) struct CargoPublisher<R> {
registry: R,
authorization: Option<Token>,
}Expand description
Cargo-specific package publication.
Fields§
§registry: RImplementations§
Source§impl<R> CargoPublisher<R>
impl<R> CargoPublisher<R>
Sourcepub(crate) fn authenticated(self, authorization: Token) -> Self
pub(crate) fn authenticated(self, authorization: Token) -> Self
Send authorization as the whole Authorization value of uploads.
Source§impl<R: PackageRegistry> CargoPublisher<R>
impl<R: PackageRegistry> CargoPublisher<R>
pub(crate) async fn is_published( &self, unit: &Unit, ) -> Result<bool, PackageError>
pub(crate) async fn publish( &self, unit: &Unit, file: &Path, ) -> Result<(), PackageError>
async fn publish_with( &self, token: &Token, unit: &Unit, file: &Path, ) -> Result<(), PackageError>
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for CargoPublisher<R>where
R: Freeze,
impl<R> RefUnwindSafe for CargoPublisher<R>where
R: RefUnwindSafe,
impl<R> Send for CargoPublisher<R>where
R: Send,
impl<R> Sync for CargoPublisher<R>where
R: Sync,
impl<R> Unpin for CargoPublisher<R>where
R: Unpin,
impl<R> UnsafeUnpin for CargoPublisher<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for CargoPublisher<R>where
R: UnwindSafe,
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