pub struct GroupResult {
pub key: Value,
pub count: i64,
pub value: Option<Value>,
}Expand description
One row of a GroupBy result.
Fields§
§key: ValueThe grouping key — typically a string or number from the
by_field column.
count: i64Row count in this group (COUNT(*) per group).
value: Option<Value>Inner aggregator result (Sum / Avg / Min / Max) if inner
was set on the GroupBy variant.
Trait Implementations§
Source§impl Clone for GroupResult
impl Clone for GroupResult
Source§fn clone(&self) -> GroupResult
fn clone(&self) -> GroupResult
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 GroupResult
impl Debug for GroupResult
Source§impl JsonSchema for GroupResult
impl JsonSchema for GroupResult
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 GroupResult
impl RefUnwindSafe for GroupResult
impl Send for GroupResult
impl Sync for GroupResult
impl Unpin for GroupResult
impl UnsafeUnpin for GroupResult
impl UnwindSafe for GroupResult
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