pub struct WindowAllowlist { /* private fields */ }Expand description
Validated allowlist of identifiers permitted in window queries for a given type.
Built at request-planning time from the compiled schema’s FactTableMetadata.
An empty allowlist means “no schema constraints are declared; character-level
validation still applies”.
Implementations§
Source§impl WindowAllowlist
impl WindowAllowlist
Sourcepub fn from_metadata(metadata: &FactTableMetadata) -> Self
pub fn from_metadata(metadata: &FactTableMetadata) -> Self
Build an allowlist from compiled fact-table metadata.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true if no schema constraints are declared.
An empty allowlist does not block any identifier; character-level validation in the planner still applies.
Sourcepub fn validate(&self, identifier: &str, context: &str) -> Result<()>
pub fn validate(&self, identifier: &str, context: &str) -> Result<()>
Validate that identifier is in the allowlist.
When the allowlist is empty (no schema constraints), this is a no-op.
§Errors
Returns FraiseQLError::Validation if the identifier is not in the
allowlist and the allowlist is non-empty.
Trait Implementations§
Source§impl Clone for WindowAllowlist
impl Clone for WindowAllowlist
Source§fn clone(&self) -> WindowAllowlist
fn clone(&self) -> WindowAllowlist
Returns a duplicate of the value. Read more
1.0.0 · 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 WindowAllowlist
impl Debug for WindowAllowlist
Source§impl Default for WindowAllowlist
impl Default for WindowAllowlist
Source§fn default() -> WindowAllowlist
fn default() -> WindowAllowlist
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WindowAllowlist
impl RefUnwindSafe for WindowAllowlist
impl Send for WindowAllowlist
impl Sync for WindowAllowlist
impl Unpin for WindowAllowlist
impl UnsafeUnpin for WindowAllowlist
impl UnwindSafe for WindowAllowlist
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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>
Converts
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>
Converts
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