pub struct RemoteName(/* private fields */);Expand description
A named git remote (e.g., origin, upstream).
Remote names are git refs (they live under refs/remotes/<name>/...)
and follow the same check-ref-format rules as branches and tags;
see crate::ref_format.
Implementations§
Source§impl RemoteName
impl RemoteName
Trait Implementations§
Source§impl AsRef<OsStr> for RemoteName
impl AsRef<OsStr> for RemoteName
Source§impl Clone for RemoteName
impl Clone for RemoteName
Source§impl Debug for RemoteName
impl Debug for RemoteName
Source§impl<'de> Deserialize<'de> for RemoteName
impl<'de> Deserialize<'de> for RemoteName
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 Display for RemoteName
impl Display for RemoteName
impl Eq for RemoteName
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.
Source§impl FromStr for RemoteName
impl FromStr for RemoteName
Source§impl PartialEq for RemoteName
impl PartialEq for RemoteName
Source§impl Serialize for RemoteName
impl Serialize for RemoteName
impl StructuralPartialEq for RemoteName
Auto Trait Implementations§
impl Forget for RemoteName
impl Freeze for RemoteName
impl Move for RemoteName
impl RefUnwindSafe for RemoteName
impl Send for RemoteName
impl Sync for RemoteName
impl Unpin for RemoteName
impl UnsafeUnpin for RemoteName
impl UnwindSafe for RemoteName
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