pub(crate) struct NpmPublisher<N> {
registry: Option<N>,
token: Option<Token>,
program: &'static str,
}Expand description
npm publication to one registry.
Fields§
§registry: Option<N>§token: Option<Token>§program: &'static strImplementations§
Source§impl<N> NpmPublisher<N>
impl<N> NpmPublisher<N>
Source§impl<N: PackageRegistry> NpmPublisher<N>
impl<N: PackageRegistry> NpmPublisher<N>
pub(crate) async fn is_published(&self, unit: &Unit) -> Result<bool, NpmError>
fn registry(&self, unit: &Unit) -> Result<&N, NpmError>
pub(crate) async fn publish( &self, unit: &Unit, file: &Path, ) -> Result<(), NpmError>
async fn publish_with( &self, token: &Token, unit: &Unit, file: &Path, ) -> Result<(), NpmError>
fn run( &self, file: &Path, registry_url: &str, npmrc: &Npmrc, ) -> Result<(), NpmError>
Trait Implementations§
Auto Trait Implementations§
impl<N> Freeze for NpmPublisher<N>
impl<N> RefUnwindSafe for NpmPublisher<N>where
Option<N>: RefUnwindSafe,
impl<N> Send for NpmPublisher<N>
impl<N> Sync for NpmPublisher<N>
impl<N> Unpin for NpmPublisher<N>
impl<N> UnsafeUnpin for NpmPublisher<N>where
Option<N>: UnsafeUnpin,
impl<N> UnwindSafe for NpmPublisher<N>where
Option<N>: 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