pub struct GithubGitEndpoint { /* private fields */ }Expand description
A canonical, credential-free GitHub.com Git endpoint.
Implementations§
Source§impl GithubGitEndpoint
impl GithubGitEndpoint
Sourcepub fn parse(value: &str) -> Result<Self, GithubGitEndpointError>
pub fn parse(value: &str) -> Result<Self, GithubGitEndpointError>
Parse a conservative GitHub.com HTTPS or SSH endpoint.
§Errors
Rejects credentials, non-GitHub hosts, ports, percent escapes, query/fragment syntax, extra path components, Unicode, and malformed repository identities.
Sourcepub const fn repository(&self) -> &Repository
pub const fn repository(&self) -> &Repository
Exact normalized GitHub repository identity.
Sourcepub const fn transport(&self) -> GithubGitTransport
pub const fn transport(&self) -> GithubGitTransport
Selected network transport.
Sourcepub fn canonical_url(&self) -> &str
pub fn canonical_url(&self) -> &str
Canonical credential-free URL rendered by RustFerry rather than copied from Git config.
Sourcepub fn repository_slug(&self) -> String
pub fn repository_slug(&self) -> String
Canonical lowercase owner/repository slug.
Trait Implementations§
Source§impl Clone for GithubGitEndpoint
impl Clone for GithubGitEndpoint
Source§impl Debug for GithubGitEndpoint
impl Debug for GithubGitEndpoint
Source§impl<'de> Deserialize<'de> for GithubGitEndpoint
impl<'de> Deserialize<'de> for GithubGitEndpoint
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 GithubGitEndpoint
impl Display for GithubGitEndpoint
impl Eq for GithubGitEndpoint
Source§impl Ord for GithubGitEndpoint
impl Ord for GithubGitEndpoint
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for GithubGitEndpoint
impl PartialEq for GithubGitEndpoint
Source§impl PartialOrd for GithubGitEndpoint
impl PartialOrd for GithubGitEndpoint
Source§impl Serialize for GithubGitEndpoint
impl Serialize for GithubGitEndpoint
impl StructuralPartialEq for GithubGitEndpoint
Auto Trait Implementations§
impl Freeze for GithubGitEndpoint
impl RefUnwindSafe for GithubGitEndpoint
impl Send for GithubGitEndpoint
impl Sync for GithubGitEndpoint
impl Unpin for GithubGitEndpoint
impl UnsafeUnpin for GithubGitEndpoint
impl UnwindSafe for GithubGitEndpoint
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.