pub enum Name<'repo> {
Symbol(Cow<'repo, str>),
Url(Cow<'repo, BStr>),
}
Expand description
The name of a remote, either interpreted as symbol like origin
or as url as returned by Remote::name()
.
Variants§
Symbol(Cow<'repo, str>)
A symbolic name, like origin
.
Note that it has not necessarily been validated yet.
Url(Cow<'repo, BStr>)
A url pointing to the remote host directly.
Implementations§
Trait Implementations§
Source§impl<'de, 'repo> Deserialize<'de> for Name<'repo>
impl<'de, 'repo> Deserialize<'de> for Name<'repo>
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<'repo> Ord for Name<'repo>
impl<'repo> Ord for Name<'repo>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'repo> PartialOrd for Name<'repo>
impl<'repo> PartialOrd for Name<'repo>
impl<'repo> Eq for Name<'repo>
impl<'repo> StructuralPartialEq for Name<'repo>
Auto Trait Implementations§
impl<'repo> Freeze for Name<'repo>
impl<'repo> RefUnwindSafe for Name<'repo>
impl<'repo> Send for Name<'repo>
impl<'repo> Sync for Name<'repo>
impl<'repo> Unpin for Name<'repo>
impl<'repo> UnwindSafe for Name<'repo>
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