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§fn clone(&self) -> RemoteName
fn clone(&self) -> RemoteName
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 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
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§fn eq(&self, other: &RemoteName) -> bool
fn eq(&self, other: &RemoteName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RemoteName
impl Serialize for RemoteName
Source§impl TryFrom<String> for RemoteName
impl TryFrom<String> for RemoteName
impl Eq for RemoteName
impl StructuralPartialEq for RemoteName
Auto Trait Implementations§
impl Freeze 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