pub struct RemoteEntry {
pub name: String,
pub fetch_url: String,
pub push_url: String,
}Expand description
A single configured remote.
push_url falls back to fetch_url when the remote has no separate
pushurl configured — which is the common case, and matches what
git remote -v prints.
Fields§
§name: StringThe remote’s name, e.g. origin.
fetch_url: StringThe URL fetches read from.
push_url: StringThe URL pushes write to.
Trait Implementations§
Source§impl Clone for RemoteEntry
impl Clone for RemoteEntry
Source§fn clone(&self) -> RemoteEntry
fn clone(&self) -> RemoteEntry
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 RemoteEntry
impl Debug for RemoteEntry
impl Eq for RemoteEntry
Source§impl PartialEq for RemoteEntry
impl PartialEq for RemoteEntry
impl StructuralPartialEq for RemoteEntry
Auto Trait Implementations§
impl Freeze for RemoteEntry
impl RefUnwindSafe for RemoteEntry
impl Send for RemoteEntry
impl Sync for RemoteEntry
impl Unpin for RemoteEntry
impl UnsafeUnpin for RemoteEntry
impl UnwindSafe for RemoteEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more