pub enum Function {
Show 85 variants
Abs(Expr),
AddMonth {
expr: Expr,
size: Expr,
},
Lower(Expr),
Initcap(Expr),
Upper(Expr),
Left {
expr: Expr,
size: Expr,
},
Right {
expr: Expr,
size: Expr,
},
Asin(Expr),
Acos(Expr),
Atan(Expr),
Lpad {
expr: Expr,
size: Expr,
fill: Option<Expr>,
},
Rpad {
expr: Expr,
size: Expr,
fill: Option<Expr>,
},
Replace {
expr: Expr,
old: Expr,
new: Expr,
},
Cast {
expr: Expr,
data_type: DataType,
},
Ceil(Expr),
Coalesce(Vec<Expr>),
Concat(Vec<Expr>),
ConcatWs {
separator: Expr,
exprs: Vec<Expr>,
},
Custom {
name: String,
exprs: Vec<Expr>,
},
IfNull {
expr: Expr,
then: Expr,
},
NullIf {
expr1: Expr,
expr2: Expr,
},
Rand(Option<Expr>),
Round(Expr),
Trunc(Expr),
Floor(Expr),
Trim {
expr: Expr,
filter_chars: Option<Expr>,
trim_where_field: Option<TrimWhereField>,
},
Exp(Expr),
Extract {
field: DateTimeField,
expr: Expr,
},
Ln(Expr),
Log {
antilog: Expr,
base: Expr,
},
Log2(Expr),
Log10(Expr),
Div {
dividend: Expr,
divisor: Expr,
},
Mod {
dividend: Expr,
divisor: Expr,
},
Gcd {
left: Expr,
right: Expr,
},
Lcm {
left: Expr,
right: Expr,
},
Sin(Expr),
Cos(Expr),
Tan(Expr),
Sqrt(Expr),
Power {
expr: Expr,
power: Expr,
},
Radians(Expr),
Degrees(Expr),
Now(),
CurrentDate(),
CurrentTime(),
CurrentTimestamp(),
Pi(),
LastDay(Expr),
Ltrim {
expr: Expr,
chars: Option<Expr>,
},
Rtrim {
expr: Expr,
chars: Option<Expr>,
},
Reverse(Expr),
Repeat {
expr: Expr,
num: Expr,
},
Sign(Expr),
Substr {
expr: Expr,
start: Expr,
count: Option<Expr>,
},
Unwrap {
expr: Expr,
selector: Expr,
},
GenerateUuid(),
Greatest(Vec<Expr>),
Format {
expr: Expr,
format: Expr,
},
ToDate {
expr: Expr,
format: Expr,
},
ToTimestamp {
expr: Expr,
format: Expr,
},
ToTime {
expr: Expr,
format: Expr,
},
Position {
from_expr: Expr,
sub_expr: Expr,
},
FindIdx {
from_expr: Expr,
sub_expr: Expr,
start: Option<Expr>,
},
Ascii(Expr),
Chr(Expr),
Md5(Expr),
Hex(Expr),
Append {
expr: Expr,
value: Expr,
},
Sort {
expr: Expr,
order: Option<Expr>,
},
Slice {
expr: Expr,
start: Expr,
length: Expr,
},
Prepend {
expr: Expr,
value: Expr,
},
Skip {
expr: Expr,
size: Expr,
},
Take {
expr: Expr,
size: Expr,
},
GetX(Expr),
GetY(Expr),
Point {
x: Expr,
y: Expr,
},
CalcDistance {
geometry1: Expr,
geometry2: Expr,
},
IsEmpty(Expr),
Length(Expr),
Entries(Expr),
Keys(Expr),
Values(Expr),
Splice {
list_data: Expr,
begin_index: Expr,
end_index: Expr,
values: Option<Expr>,
},
Dedup(Expr),
}
Variants§
Abs(Expr)
AddMonth
Lower(Expr)
Initcap(Expr)
Upper(Expr)
Left
Right
Asin(Expr)
Acos(Expr)
Atan(Expr)
Lpad
Rpad
Replace
Cast
Ceil(Expr)
Coalesce(Vec<Expr>)
Concat(Vec<Expr>)
ConcatWs
Custom
IfNull
NullIf
Rand(Option<Expr>)
Round(Expr)
Trunc(Expr)
Floor(Expr)
Trim
Exp(Expr)
Extract
Ln(Expr)
Log
Log2(Expr)
Log10(Expr)
Div
Mod
Gcd
Lcm
Sin(Expr)
Cos(Expr)
Tan(Expr)
Sqrt(Expr)
Power
Radians(Expr)
Degrees(Expr)
Now()
CurrentDate()
CurrentTime()
CurrentTimestamp()
Pi()
LastDay(Expr)
Ltrim
Rtrim
Reverse(Expr)
Repeat
Sign(Expr)
Substr
Unwrap
GenerateUuid()
Greatest(Vec<Expr>)
Format
ToDate
ToTimestamp
ToTime
Position
FindIdx
Ascii(Expr)
Chr(Expr)
Md5(Expr)
Hex(Expr)
Append
Sort
Slice
Prepend
Skip
Take
GetX(Expr)
GetY(Expr)
Point
CalcDistance
IsEmpty(Expr)
Length(Expr)
Entries(Expr)
Keys(Expr)
Values(Expr)
Splice
Dedup(Expr)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Function
impl<'de> Deserialize<'de> for Function
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<'a> TryFrom<FunctionNode<'a>> for Function
impl<'a> TryFrom<FunctionNode<'a>> for Function
impl Eq for Function
impl StructuralPartialEq for Function
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
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>
Converts
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>
Converts
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