pub struct Aggregation {
pub function: KoronFunction,
pub column: String,
pub alias: Option<String>,
}
Expand description
An aggregation that’s computed over the values of a column.
Represents an occurrence of an aggregation such as function(column)
within the SELECT
clause of a query.
Fields§
§function: KoronFunction
The function used as aggregator of column’s values.
column: String
The name of the column on which the function is executed.
alias: Option<String>
The alias that’s assigned to the result of the function: function(column) AS alias
.
Trait Implementations§
Source§impl Clone for Aggregation
impl Clone for Aggregation
Source§fn clone(&self) -> Aggregation
fn clone(&self) -> Aggregation
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 ComposeSchema for Aggregation
impl ComposeSchema for Aggregation
Source§impl Debug for Aggregation
impl Debug for Aggregation
Source§impl Default for Aggregation
impl Default for Aggregation
Source§fn default() -> Aggregation
fn default() -> Aggregation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Aggregation
impl<'de> Deserialize<'de> for Aggregation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl IntoParams for Aggregation
impl IntoParams for Aggregation
Source§fn into_params(
parameter_in_provider: impl Fn() -> Option<ParameterIn>,
) -> Vec<Parameter>
fn into_params( parameter_in_provider: impl Fn() -> Option<ParameterIn>, ) -> Vec<Parameter>
Provide
Vec
of openapi::path::Parameter
s to caller. The result is used in utoipa-gen
library to
provide OpenAPI parameter information for the endpoint using the parameters.Source§impl PartialEq for Aggregation
impl PartialEq for Aggregation
Source§impl Serialize for Aggregation
impl Serialize for Aggregation
Source§impl ToSchema for Aggregation
impl ToSchema for Aggregation
impl Eq for Aggregation
impl StructuralPartialEq for Aggregation
Auto Trait Implementations§
impl Freeze for Aggregation
impl RefUnwindSafe for Aggregation
impl Send for Aggregation
impl Sync for Aggregation
impl Unpin for Aggregation
impl UnwindSafe for Aggregation
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.