Skip to main content

AnalysisContext

Struct AnalysisContext 

Source
pub struct AnalysisContext {
    pub allow_agg_func: bool,
    pub use_agg_funcs: bool,
}
Expand description

Context for controlling analysis behavior.

This struct allows you to configure how expressions are analyzed, such as whether aggregate functions are allowed in the current context.

Fields§

§allow_agg_func: bool

Controls whether aggregate functions (like COUNT, SUM, AVG) are allowed in the current analysis context.

Set to true to allow aggregate functions, false to reject them. Defaults to false.

§use_agg_funcs: bool

Indicates if the query uses aggregate functions.

Trait Implementations§

Source§

impl Default for AnalysisContext

Source§

fn default() -> AnalysisContext

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.