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