pub struct GithubRepoRef {
pub canonical_url: String,
pub owner: String,
pub repo: String,
}Expand description
Structured GitHub repository reference parsed from a user-provided URL.
Returning a structured value (rather than a bool predicate over the raw
string) lets callers show a friendly progress message and validates that the
URL has both owner and repo segments before the network call.
Fields§
§canonical_url: StringCanonical https://github.com/<owner>/<repo> form of the input.
owner: String§repo: StringTrait Implementations§
Source§impl Clone for GithubRepoRef
impl Clone for GithubRepoRef
Source§fn clone(&self) -> GithubRepoRef
fn clone(&self) -> GithubRepoRef
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 GithubRepoRef
impl Debug for GithubRepoRef
impl Eq for GithubRepoRef
Source§impl PartialEq for GithubRepoRef
impl PartialEq for GithubRepoRef
Source§fn eq(&self, other: &GithubRepoRef) -> bool
fn eq(&self, other: &GithubRepoRef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GithubRepoRef
Auto Trait Implementations§
impl Freeze for GithubRepoRef
impl RefUnwindSafe for GithubRepoRef
impl Send for GithubRepoRef
impl Sync for GithubRepoRef
impl Unpin for GithubRepoRef
impl UnsafeUnpin for GithubRepoRef
impl UnwindSafe for GithubRepoRef
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> 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.