pub trait ExprExt {
// Required methods
fn with_alias(self, alias: &str) -> Expr;
fn or_default(self, default: impl Into<Expr>) -> Expr;
fn json(self, key: &str) -> JsonBuilder;
fn path(self, dotted_path: &str) -> JsonBuilder;
fn cast(self, target_type: &str) -> Expr;
fn upper(self) -> Expr;
fn lower(self) -> Expr;
fn trim(self) -> Expr;
fn length(self) -> Expr;
fn abs(self) -> Expr;
}Expand description
Extension trait to add fluent methods to Expr
Required Methods§
Sourcefn with_alias(self, alias: &str) -> Expr
fn with_alias(self, alias: &str) -> Expr
Sourcefn or_default(self, default: impl Into<Expr>) -> Expr
fn or_default(self, default: impl Into<Expr>) -> Expr
Sourcefn json(self, key: &str) -> JsonBuilder
fn json(self, key: &str) -> JsonBuilder
Sourcefn path(self, dotted_path: &str) -> JsonBuilder
fn path(self, dotted_path: &str) -> JsonBuilder
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.