pub struct PackageLockSource {
pub source_type: PackageLockSourceType,
pub uri: String,
pub rev: Option<String>,
}Expand description
Struct that saves the source uri string
Fields§
§source_type: PackageLockSourceType§uri: String§rev: Option<String>Trait Implementations§
Source§impl Debug for PackageLockSource
impl Debug for PackageLockSource
Source§impl<'de> Deserialize<'de> for PackageLockSource
impl<'de> Deserialize<'de> for PackageLockSource
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromStr for PackageLockSource
Parses the whole source uri string of a package
the uri string follows the pattern +(#)
impl FromStr for PackageLockSource
Parses the whole source uri string of a package
the uri string follows the pattern
Source§impl Serialize for PackageLockSource
impl Serialize for PackageLockSource
Source§impl TryFrom<&PackageLockSource> for PackageDetails
impl TryFrom<&PackageLockSource> for PackageDetails
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for PackageLockSource
impl RefUnwindSafe for PackageLockSource
impl Send for PackageLockSource
impl Sync for PackageLockSource
impl Unpin for PackageLockSource
impl UnwindSafe for PackageLockSource
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