pub enum PackageLockSourceType {
REGISTRY,
GIT,
TARBALL,
PATH,
}Expand description
Different package sources types, available inside the lock file.
Variants§
Trait Implementations§
Source§impl Debug for PackageLockSourceType
impl Debug for PackageLockSourceType
Source§impl Display for PackageLockSourceType
generates the corresponding string based on enum value
impl Display for PackageLockSourceType
generates the corresponding string based on enum value
Source§impl From<ProjectSource> for PackageLockSourceType
impl From<ProjectSource> for PackageLockSourceType
Source§fn from(value: ProjectSource) -> Self
fn from(value: ProjectSource) -> Self
Converts to this type from the input type.
Source§impl FromStr for PackageLockSourceType
impl FromStr for PackageLockSourceType
Source§impl PartialEq for PackageLockSourceType
impl PartialEq for PackageLockSourceType
impl StructuralPartialEq for PackageLockSourceType
Auto Trait Implementations§
impl Freeze for PackageLockSourceType
impl RefUnwindSafe for PackageLockSourceType
impl Send for PackageLockSourceType
impl Sync for PackageLockSourceType
impl Unpin for PackageLockSourceType
impl UnwindSafe for PackageLockSourceType
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more