pub struct GitRemoteUrl {
pub host: String,
pub path: String,
}Expand description
Host + path split out of a parsed git remote URL.
host carries the bare hostname (port and userinfo removed). path carries
the URL path with leading/trailing slashes and a single optional trailing
.git removed; callers split it into owner/repo or group/project segments.
Fields§
§host: String§path: StringTrait Implementations§
Source§impl Clone for GitRemoteUrl
impl Clone for GitRemoteUrl
Source§fn clone(&self) -> GitRemoteUrl
fn clone(&self) -> GitRemoteUrl
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 GitRemoteUrl
impl Debug for GitRemoteUrl
Source§impl PartialEq for GitRemoteUrl
impl PartialEq for GitRemoteUrl
Source§fn eq(&self, other: &GitRemoteUrl) -> bool
fn eq(&self, other: &GitRemoteUrl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for GitRemoteUrl
impl StructuralPartialEq for GitRemoteUrl
Auto Trait Implementations§
impl Freeze for GitRemoteUrl
impl RefUnwindSafe for GitRemoteUrl
impl Send for GitRemoteUrl
impl Sync for GitRemoteUrl
impl Unpin for GitRemoteUrl
impl UnsafeUnpin for GitRemoteUrl
impl UnwindSafe for GitRemoteUrl
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