pub enum Remote {
Name(RemoteName),
Url(GitUrl),
}Expand description
A git remote reference: either a named remote or a URL.
Variants§
Implementations§
Trait Implementations§
Source§impl From<RemoteName> for Remote
impl From<RemoteName> for Remote
Source§fn from(name: RemoteName) -> Self
fn from(name: RemoteName) -> Self
Converts to this type from the input type.
impl Eq for Remote
impl StructuralPartialEq for Remote
Auto Trait Implementations§
impl Freeze for Remote
impl RefUnwindSafe for Remote
impl Send for Remote
impl Sync for Remote
impl Unpin for Remote
impl UnwindSafe for Remote
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