pub enum ReadScope {
All,
Audiences(Arc<[String]>),
EveryAudience,
}Expand description
The authorization scope a query planner may read under: unrestricted (All, internal only),
a listed set of audiences, or every audience (EveryAudience).
All is deliberately not something a ReadPolicy can produce (see
micromegas_auth::policy::ReadPolicy’s doc comment) – it is the marker internal
(non-request) callers pass, via CallerContext::internal / CallerContext::maintenance.
Variants§
All
No audience restriction. Only ever constructed by an internal/maintenance caller, or by
the rust/public resolver when no AuthContext extension is present at all (no auth
provider configured, e.g. --disable-auth) – never as the output of resolving a
ReadPolicy against a real caller.
Audiences(Arc<[String]>)
Restricted to the given set of audiences – opaque labels (e.g. "public",
"team-alpha"), as resolved by a ReadPolicy.
EveryAudience
Any row carrying an audience. A request scope like Audiences, never All: the same
row-level filter and call-level guard apply, and only the membership test changes from
“audience in list” to “has an audience”. Covers audiences created after the grant.
Trait Implementations§
impl Eq for ReadScope
impl StructuralPartialEq for ReadScope
Auto Trait Implementations§
impl Freeze for ReadScope
impl RefUnwindSafe for ReadScope
impl Send for ReadScope
impl Sync for ReadScope
impl Unpin for ReadScope
impl UnsafeUnpin for ReadScope
impl UnwindSafe for ReadScope
Blanket Implementations§
impl<T> Allocation for T
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].