pub struct RepoSplit {
pub owner: String,
pub repo: String,
}Expand description
A parsed repository specification consisting of an owner and repo name.
§Examples
use gor::repository::{parse_repo_spec, RepoSplit};
let spec = parse_repo_spec("octocat/hello-world").expect("valid spec");
assert_eq!(spec.owner, "octocat");
assert_eq!(spec.repo, "hello-world");Fields§
§owner: StringThe repository owner (user or organization).
repo: StringThe repository name.
Implementations§
Trait Implementations§
impl Eq for RepoSplit
impl StructuralPartialEq for RepoSplit
Auto Trait Implementations§
impl Freeze for RepoSplit
impl RefUnwindSafe for RepoSplit
impl Send for RepoSplit
impl Sync for RepoSplit
impl Unpin for RepoSplit
impl UnsafeUnpin for RepoSplit
impl UnwindSafe for RepoSplit
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.