#[repr(i32)]pub enum AggregateFunction {
Min = 0,
Max = 1,
ArrayAgg = 6,
}Variants§
Min = 0
Max = 1
ArrayAgg = 6
SUM = 2; AVG = 3; COUNT = 4; APPROX_DISTINCT = 5;
VARIANCE = 7; VARIANCE_POP = 8; COVARIANCE = 9; COVARIANCE_POP = 10; STDDEV = 11; STDDEV_POP = 12; CORRELATION = 13; APPROX_PERCENTILE_CONT = 14; APPROX_MEDIAN = 15; APPROX_PERCENTILE_CONT_WITH_WEIGHT = 16; GROUPING = 17; MEDIAN = 18; BIT_AND = 19; BIT_OR = 20; BIT_XOR = 21; BOOL_AND = 22; BOOL_OR = 23; REGR_SLOPE = 26; REGR_INTERCEPT = 27; REGR_COUNT = 28; REGR_R2 = 29; REGR_AVGX = 30; REGR_AVGY = 31; REGR_SXX = 32; REGR_SYY = 33; REGR_SXY = 34; STRING_AGG = 35; NTH_VALUE_AGG = 36;
Implementations§
source§impl AggregateFunction
impl AggregateFunction
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for AggregateFunction
impl Clone for AggregateFunction
source§fn clone(&self) -> AggregateFunction
fn clone(&self) -> AggregateFunction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AggregateFunction
impl Debug for AggregateFunction
source§impl Default for AggregateFunction
impl Default for AggregateFunction
source§fn default() -> AggregateFunction
fn default() -> AggregateFunction
source§impl From<&AggregateFunction> for AggregateFunction
impl From<&AggregateFunction> for AggregateFunction
source§fn from(value: &AggregateFunction) -> Self
fn from(value: &AggregateFunction) -> Self
source§impl From<AggregateFunction> for AggregateFunction
impl From<AggregateFunction> for AggregateFunction
source§fn from(agg_fun: AggregateFunction) -> Self
fn from(agg_fun: AggregateFunction) -> Self
source§impl From<AggregateFunction> for i32
impl From<AggregateFunction> for i32
source§fn from(value: AggregateFunction) -> i32
fn from(value: AggregateFunction) -> i32
source§impl Hash for AggregateFunction
impl Hash for AggregateFunction
source§impl Ord for AggregateFunction
impl Ord for AggregateFunction
source§fn cmp(&self, other: &AggregateFunction) -> Ordering
fn cmp(&self, other: &AggregateFunction) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for AggregateFunction
impl PartialEq for AggregateFunction
source§fn eq(&self, other: &AggregateFunction) -> bool
fn eq(&self, other: &AggregateFunction) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialOrd for AggregateFunction
impl PartialOrd for AggregateFunction
source§fn partial_cmp(&self, other: &AggregateFunction) -> Option<Ordering>
fn partial_cmp(&self, other: &AggregateFunction) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for AggregateFunction
impl TryFrom<i32> for AggregateFunction
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<AggregateFunction, DecodeError>
fn try_from(value: i32) -> Result<AggregateFunction, DecodeError>
impl Copy for AggregateFunction
impl Eq for AggregateFunction
impl StructuralPartialEq for AggregateFunction
Auto Trait Implementations§
impl Freeze for AggregateFunction
impl RefUnwindSafe for AggregateFunction
impl Send for AggregateFunction
impl Sync for AggregateFunction
impl Unpin for AggregateFunction
impl UnwindSafe for AggregateFunction
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key and return true if they are equal.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more