pub enum Disclosure {
Public,
NodeWide,
PerRepo,
}Expand description
How one top-level section of a read response may be disclosed.
Variants§
Public
Served to anyone who reaches the endpoint. It names no repository, and a writer cannot bind a scoped submission without it.
NodeWide
Served whole to a reader holding Scope::Node and omitted from
everyone else. This is the “gate, never filter” rule /api/log
and /api/ref-agreement follow, applied one level down: the
section counts, attributes or times events across every
repository at once, so there is no honest way to narrow it.
PerRepo
Narrowed entry by entry to the reader’s repository grants.
Trait Implementations§
Source§impl Clone for Disclosure
impl Clone for Disclosure
Source§fn clone(&self) -> Disclosure
fn clone(&self) -> Disclosure
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 Disclosure
impl Debug for Disclosure
Source§impl PartialEq for Disclosure
impl PartialEq for Disclosure
Source§fn eq(&self, other: &Disclosure) -> bool
fn eq(&self, other: &Disclosure) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Disclosure
impl Eq for Disclosure
impl StructuralPartialEq for Disclosure
Auto Trait Implementations§
impl Freeze for Disclosure
impl RefUnwindSafe for Disclosure
impl Send for Disclosure
impl Sync for Disclosure
impl Unpin for Disclosure
impl UnsafeUnpin for Disclosure
impl UnwindSafe for Disclosure
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