#[non_exhaustive]pub enum SourceVersionSpecifierType {
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 SourceVersionSpecifierType::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 SourceVersionSpecifierType::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 SourceVersionSpecifierType
impl RefUnwindSafe for SourceVersionSpecifierType
impl Send for SourceVersionSpecifierType
impl Sync for SourceVersionSpecifierType
impl Unpin for SourceVersionSpecifierType
impl UnwindSafe for SourceVersionSpecifierType
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