pub struct ReachableTargets { /* private fields */ }Expand description
Everything the stored credential can reach.
Implementations§
Source§impl ReachableTargets
impl ReachableTargets
pub fn installations(&self) -> &[Installation]
Sourcepub fn skipped(&self) -> usize
pub fn skipped(&self) -> usize
How many installations GitHub reported that this client could not describe, and therefore left out of everything above.
Non-zero means this report is incomplete, not merely small: whatever
those installations reach is absent from
ReachableTargets::repositories and
ReachableTargets::organizations. auth status should say so, because
the alternative is an operator reading a short list as a complete one.
Sourcepub fn repositories(&self) -> Vec<OwnerRepo>
pub fn repositories(&self) -> Vec<OwnerRepo>
Every repository the credential can reach, sorted and de-duplicated.
Sourcepub fn organizations(&self) -> Vec<Org>
pub fn organizations(&self) -> Vec<Org>
Every organization the App is installed on, sorted and de-duplicated.
Sourcepub fn over_broad(&self) -> Vec<&Installation>
pub fn over_broad(&self) -> Vec<&Installation>
The installations that hold repository_selection: all.
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for ReachableTargets
impl Clone for ReachableTargets
Source§fn clone(&self) -> ReachableTargets
fn clone(&self) -> ReachableTargets
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 ReachableTargets
impl Debug for ReachableTargets
impl Eq for ReachableTargets
Source§impl PartialEq for ReachableTargets
impl PartialEq for ReachableTargets
impl StructuralPartialEq for ReachableTargets
Auto Trait Implementations§
impl Freeze for ReachableTargets
impl RefUnwindSafe for ReachableTargets
impl Send for ReachableTargets
impl Sync for ReachableTargets
impl Unpin for ReachableTargets
impl UnsafeUnpin for ReachableTargets
impl UnwindSafe for ReachableTargets
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.