pub enum Scope {
Repo(String),
AllRepos,
Node,
}Expand description
What a grant applies to.
Variants§
Repo(String)
One repository, in the canonical spelling produced by
normalize_repo.
AllRepos
Every repository on the node, written * in the file.
Never matches Scope::Node. * is a statement about
repositories, and the node’s own log, attestation and
repository-less ops are not a repository.
Node
The node itself, written @node in the file: the op log, the
ref-state attestation, and ops that name no repository.
Trait Implementations§
impl Eq for Scope
impl StructuralPartialEq for Scope
Auto Trait Implementations§
impl Freeze for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnsafeUnpin for Scope
impl UnwindSafe for Scope
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