pub enum RepositorySelection {
All,
Selected,
}Expand description
Whether an installation can reach every repository on its account, or only the ones the user picked.
Variants§
All
Every repository on the account, including ones created later.
Selected
Only the repositories the user chose at install time.
Implementations§
Source§impl RepositorySelection
impl RepositorySelection
Sourcepub fn is_over_broad(self) -> bool
pub fn is_over_broad(self) -> bool
07-security.md: “auth status shows which repositories the token can
reach, so an over-broad installation is visible rather than assumed.”
This is the flag that makes it visible.
Trait Implementations§
Source§impl Clone for RepositorySelection
impl Clone for RepositorySelection
Source§fn clone(&self) -> RepositorySelection
fn clone(&self) -> RepositorySelection
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 moreimpl Copy for RepositorySelection
Source§impl Debug for RepositorySelection
impl Debug for RepositorySelection
Source§impl<'de> Deserialize<'de> for RepositorySelection
impl<'de> Deserialize<'de> for RepositorySelection
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
impl Eq for RepositorySelection
Source§impl PartialEq for RepositorySelection
impl PartialEq for RepositorySelection
Source§impl Serialize for RepositorySelection
impl Serialize for RepositorySelection
impl StructuralPartialEq for RepositorySelection
Auto Trait Implementations§
impl Freeze for RepositorySelection
impl RefUnwindSafe for RepositorySelection
impl Send for RepositorySelection
impl Sync for RepositorySelection
impl Unpin for RepositorySelection
impl UnsafeUnpin for RepositorySelection
impl UnwindSafe for RepositorySelection
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,
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.