#[non_exhaustive]pub enum PackageSourceType {
Npm,
TarballURL,
Git,
}
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
An npm registry (not necessarily registry.npmjs.com)
TarballURL
Arbitrary URL to a .tar.gz file, no registry involved.
Git
Git repository.
Trait Implementations§
Source§impl Clone for PackageSourceType
impl Clone for PackageSourceType
Source§fn clone(&self) -> PackageSourceType
fn clone(&self) -> PackageSourceType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PackageSourceType
impl Debug for PackageSourceType
Source§impl PartialEq for PackageSourceType
impl PartialEq for PackageSourceType
impl Copy for PackageSourceType
impl Eq for PackageSourceType
impl StructuralPartialEq for PackageSourceType
Auto Trait Implementations§
impl Freeze for PackageSourceType
impl RefUnwindSafe for PackageSourceType
impl Send for PackageSourceType
impl Sync for PackageSourceType
impl Unpin for PackageSourceType
impl UnwindSafe for PackageSourceType
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