pub enum TermScope {
Registry,
Identities(Vec<String>),
}Expand description
Which private repositories a check derives its terms from.
On the wire it is the optional scope of a BoundaryInput: absent is
Registry, and an array of identities is
Identities.
Variants§
Registry
Every registered identity whose effective visibility is private.
Identities(Vec<String>)
The named identities whose effective visibility is private, and no other. A named public identity contributes nothing; a named identity that is not registered, or whose committed declarations cannot be read, makes the check unavailable. Empty derives nothing and reads nothing.
Implementations§
Source§impl TermScope
impl TermScope
Sourcepub fn is_registry(&self) -> bool
pub fn is_registry(&self) -> bool
Whether this is TermScope::Registry, which the wire spells by absence.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TermScope
impl<'de> Deserialize<'de> for TermScope
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TermScope
impl StructuralPartialEq for TermScope
Auto Trait Implementations§
impl Freeze for TermScope
impl RefUnwindSafe for TermScope
impl Send for TermScope
impl Sync for TermScope
impl Unpin for TermScope
impl UnsafeUnpin for TermScope
impl UnwindSafe for TermScope
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,
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.