pub enum RepoAccess {
Exists {
push: bool,
admin: bool,
},
Absent,
Error(String),
}Expand description
A token’s access to the mirror’s target GitHub repo, from GET /repos/{owner}/{repo}.
Variants§
Exists
The repo exists; push/admin come from its permissions object.
Absent
GET 404’d — the repo doesn’t exist yet (git-ark would create it).
Error(String)
Anything else — a transport error or a non-404 status.
Trait Implementations§
Source§impl Clone for RepoAccess
impl Clone for RepoAccess
Source§fn clone(&self) -> RepoAccess
fn clone(&self) -> RepoAccess
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 RepoAccess
impl Debug for RepoAccess
impl Eq for RepoAccess
Source§impl PartialEq for RepoAccess
impl PartialEq for RepoAccess
impl StructuralPartialEq for RepoAccess
Auto Trait Implementations§
impl Freeze for RepoAccess
impl RefUnwindSafe for RepoAccess
impl Send for RepoAccess
impl Sync for RepoAccess
impl Unpin for RepoAccess
impl UnsafeUnpin for RepoAccess
impl UnwindSafe for RepoAccess
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.