pub struct SourceSpec<'a> {
pub package_name: &'a str,
pub urls: &'a [String],
pub reference: &'a str,
pub dest: &'a Path,
}Expand description
One package to install from its git source.
Fields§
§package_name: &'a strThe package name, for error messages.
urls: &'a [String]Clone URL candidates in preference order (a preferred mirror before
the origin host — LockPackage::source_urls). Never empty.
reference: &'a strThe revision to check out — a full commit sha in a lockfile.
dest: &'a PathWhere the checkout must end up. Any existing contents are replaced.
Trait Implementations§
Source§impl<'a> Clone for SourceSpec<'a>
impl<'a> Clone for SourceSpec<'a>
impl<'a> Copy for SourceSpec<'a>
Auto Trait Implementations§
impl<'a> Forget for SourceSpec<'a>
impl<'a> Freeze for SourceSpec<'a>
impl<'a> Move for SourceSpec<'a>
impl<'a> RefUnwindSafe for SourceSpec<'a>
impl<'a> Send for SourceSpec<'a>
impl<'a> Sync for SourceSpec<'a>
impl<'a> Unpin for SourceSpec<'a>
impl<'a> UnsafeUnpin for SourceSpec<'a>
impl<'a> UnwindSafe for SourceSpec<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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