pub enum AliasRunResult {
Rows(Vec<Value>),
Count(i64),
Value(Value),
Groups(Vec<GroupResult>),
}Expand description
Externally-tagged result of execute_aggregate. JSON dispatch over
the kind field lets MCP callers decode without prior knowledge of
which aggregator was requested.
Variants§
Rows(Vec<Value>)
Reserved for the Phase 2 alias-run unification path; no current
AliasAggregator variant produces this.
Count(i64)
COUNT(*) result.
Value(Value)
Scalar aggregate (Sum / Avg / Min / Max) as a JSON Number
or Null (when the source is empty).
Groups(Vec<GroupResult>)
GroupBy result, one entry per group.
Trait Implementations§
Source§impl Clone for AliasRunResult
impl Clone for AliasRunResult
Source§fn clone(&self) -> AliasRunResult
fn clone(&self) -> AliasRunResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AliasRunResult
impl Debug for AliasRunResult
Source§impl JsonSchema for AliasRunResult
impl JsonSchema for AliasRunResult
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for AliasRunResult
impl RefUnwindSafe for AliasRunResult
impl Send for AliasRunResult
impl Sync for AliasRunResult
impl Unpin for AliasRunResult
impl UnsafeUnpin for AliasRunResult
impl UnwindSafe for AliasRunResult
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