#[non_exhaustive]pub enum SourceVersionSpecifierKind {
Npm,
NpmTag,
TarballURL,
Git,
GitHub,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Npm
Package from an npm registry. Does not include tags (see SourceVersionSpecifierKind::NpmTag)
NpmTag
Named tag from an npm registry, e.g. “latest”, “beta”.
TarballURL
Arbitrary tarball URL. https://docs.npmjs.com/cli/v10/configuring-npm/package-json#urls-as-dependencies
Git
Git repository. https://docs.npmjs.com/cli/v10/configuring-npm/package-json#git-urls-as-dependencies
GitHub
GitHub repository. No, not the same as SourceVersionSpecifierKind::Git, it’s papa’s special boy.
https://docs.npmjs.com/cli/v10/configuring-npm/package-json#git-urls-as-dependencies
Auto Trait Implementations§
impl Freeze for SourceVersionSpecifierKind
impl RefUnwindSafe for SourceVersionSpecifierKind
impl Send for SourceVersionSpecifierKind
impl Sync for SourceVersionSpecifierKind
impl Unpin for SourceVersionSpecifierKind
impl UnwindSafe for SourceVersionSpecifierKind
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