pub enum ApiKeyTable {
Ingestion,
Analytics,
}Expand description
Which key table a provider (or the management API) is bound to.
The table name is always a &'static str literal — never derived from caller
input — so the SQL built from it (below) can never be injected into.
Variants§
Ingestion
ingestion_api_keys — write credentials, minted/listed/revoked over HTTP.
Analytics
analytics_api_keys — read credentials, minted/listed/revoked over
HTTP through analytics-web-srv’s own routes (/api/analytics-api-keys*,
see the admin runbook) — not through this crate’s ingestion-hosted API.
Implementations§
Source§impl ApiKeyTable
impl ApiKeyTable
Sourcepub fn table_name(self) -> &'static str
pub fn table_name(self) -> &'static str
Static table name.
Sourcepub fn has_audience(self) -> bool
pub fn has_audience(self) -> bool
Whether this table carries a write-side audience column (ingestion_api_keys only,
migration v6). analytics_api_keys’s read-side mirror is read_audiences, a set-valued
grant on the caller rather than a column on the key row.
Sourcepub fn allows_delegation(self) -> bool
pub fn allows_delegation(self) -> bool
Whether a key from this table may delegate (mint/act as another principal) –
analytics_api_keys only.
Trait Implementations§
Source§impl Clone for ApiKeyTable
impl Clone for ApiKeyTable
Source§fn clone(&self) -> ApiKeyTable
fn clone(&self) -> ApiKeyTable
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ApiKeyTable
Source§impl Debug for ApiKeyTable
impl Debug for ApiKeyTable
impl Eq for ApiKeyTable
Source§impl PartialEq for ApiKeyTable
impl PartialEq for ApiKeyTable
impl StructuralPartialEq for ApiKeyTable
Auto Trait Implementations§
impl Freeze for ApiKeyTable
impl RefUnwindSafe for ApiKeyTable
impl Send for ApiKeyTable
impl Sync for ApiKeyTable
impl Unpin for ApiKeyTable
impl UnsafeUnpin for ApiKeyTable
impl UnwindSafe for ApiKeyTable
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].