pub enum Address {
Ssh(SshAddress),
Https(HttpsUrl),
Git(GitUrl),
Path(PathAddress),
}Expand description
A validated git repository address.
Variants§
Ssh(SshAddress)
SSH address: git@host:path (SCP-style) or ssh://user@host/path
Https(HttpsUrl)
HTTPS URL: https://host/path
Git(GitUrl)
Git protocol URL: git://host/path
Path(PathAddress)
Local file path: /path/to/repo or file:///path/to/repo
Implementations§
Trait Implementations§
impl Eq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnsafeUnpin for Address
impl UnwindSafe for Address
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