pub struct QueryStats {
pub cube: String,
pub table: String,
pub limit: u32,
pub offset: u32,
pub select_count: usize,
pub aggregate_count: usize,
pub has_group_by: bool,
pub has_having: bool,
pub filter_depth: usize,
pub row_count: usize,
pub sql_generated: String,
}Expand description
Query-level metadata collected after resolver execution. Application layer uses this for observability, billing, or logging. This struct intentionally contains no cost/credit/price fields — billing logic belongs in the application, not the generic library.
Fields§
§cube: String§table: String§limit: u32§offset: u32§select_count: usize§aggregate_count: usize§has_group_by: bool§has_having: bool§filter_depth: usize§row_count: usize§sql_generated: StringImplementations§
Trait Implementations§
Source§impl Clone for QueryStats
impl Clone for QueryStats
Source§fn clone(&self) -> QueryStats
fn clone(&self) -> QueryStats
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 moreAuto Trait Implementations§
impl Freeze for QueryStats
impl RefUnwindSafe for QueryStats
impl Send for QueryStats
impl Sync for QueryStats
impl Unpin for QueryStats
impl UnsafeUnpin for QueryStats
impl UnwindSafe for QueryStats
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