pub enum InstallSource {
Github(GithubRepo),
Gitlab(GitlabRepo),
LocalPath(PathBuf),
}Variants§
Trait Implementations§
Source§impl Clone for InstallSource
impl Clone for InstallSource
Source§fn clone(&self) -> InstallSource
fn clone(&self) -> InstallSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InstallSource
impl Debug for InstallSource
Source§impl Display for InstallSource
Stable, round-trippable string label for use in lockfiles, log lines,
and CLI output. Format mirrors what parse_install_source accepts:
impl Display for InstallSource
Stable, round-trippable string label for use in lockfiles, log lines,
and CLI output. Format mirrors what parse_install_source accepts:
github:<owner>/<name>[@<ref>][:<subfolder>]gitlab:<owner>/<name>[@<ref>][:<subfolder>](host omitted whengitlab.com; otherwisegitlab+<host>:...)local:<path>(absolute when known, otherwise as-given)
Source§impl PartialEq for InstallSource
impl PartialEq for InstallSource
Source§fn eq(&self, other: &InstallSource) -> bool
fn eq(&self, other: &InstallSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for InstallSource
impl StructuralPartialEq for InstallSource
Auto Trait Implementations§
impl Freeze for InstallSource
impl RefUnwindSafe for InstallSource
impl Send for InstallSource
impl Sync for InstallSource
impl Unpin for InstallSource
impl UnsafeUnpin for InstallSource
impl UnwindSafe for InstallSource
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.