pub struct IsolationConfig {
pub public_view_sets: Vec<String>,
}Expand description
Deployment config for the data-isolation seam: super::ownership_rewrite::OwnershipRewrite
(the row-level filter). Resolved once at server startup from environment variables – see
IsolationConfig::from_env.
#[derive(Default)]: public_view_sets is the only field, and its empty-by-default matches
Self::from_env’s own default.
Fields§
§public_view_sets: Vec<String>View-set names OwnershipRewrite skips entirely – no predicate injected at all,
regardless of scope. Off (empty) by default, fail-closed for this
operator-responsibility allowlist. Parsed from MICROMEGAS_PUBLIC_VIEW_SETS.
Implementations§
Source§impl IsolationConfig
impl IsolationConfig
Sourcepub fn from_env() -> Result<IsolationConfig, Error>
pub fn from_env() -> Result<IsolationConfig, Error>
Resolves the surviving knob from the environment. MICROMEGAS_PUBLIC_VIEW_SETS unset ⇒
no public view sets; a malformed entry is Err, not silently ignored – a startup ?
turns a typo into a fail-fast instead of a silently-inert knob.
Trait Implementations§
Source§impl Clone for IsolationConfig
impl Clone for IsolationConfig
Source§fn clone(&self) -> IsolationConfig
fn clone(&self) -> IsolationConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IsolationConfig
impl Debug for IsolationConfig
Source§impl Default for IsolationConfig
impl Default for IsolationConfig
Source§fn default() -> IsolationConfig
fn default() -> IsolationConfig
Auto Trait Implementations§
impl Freeze for IsolationConfig
impl RefUnwindSafe for IsolationConfig
impl Send for IsolationConfig
impl Sync for IsolationConfig
impl Unpin for IsolationConfig
impl UnsafeUnpin for IsolationConfig
impl UnwindSafe for IsolationConfig
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<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].