Trait query_structure::filter::JsonCompare
source · pub trait JsonCompare {
// Required methods
fn json_equals<T>(&self, value: T, path: Option<JsonFilterPath>) -> Filter
where T: Into<ConditionValue>;
fn json_not_equals<T>(
&self,
value: T,
path: Option<JsonFilterPath>
) -> Filter
where T: Into<ConditionValue>;
fn json_less_than<T>(
&self,
value: T,
path: Option<JsonFilterPath>
) -> Filter
where T: Into<ConditionValue>;
fn json_less_than_or_equals<T>(
&self,
value: T,
path: Option<JsonFilterPath>
) -> Filter
where T: Into<ConditionValue>;
fn json_greater_than<T>(
&self,
value: T,
path: Option<JsonFilterPath>
) -> Filter
where T: Into<ConditionValue>;
fn json_greater_than_or_equals<T>(
&self,
value: T,
path: Option<JsonFilterPath>
) -> Filter
where T: Into<ConditionValue>;
fn json_contains<T>(
&self,
value: T,
path: Option<JsonFilterPath>,
target_type: JsonTargetType
) -> Filter
where T: Into<ConditionValue>;
fn json_not_contains<T>(
&self,
value: T,
path: Option<JsonFilterPath>,
target_type: JsonTargetType
) -> Filter
where T: Into<ConditionValue>;
fn json_starts_with<T>(
&self,
value: T,
path: Option<JsonFilterPath>,
target_type: JsonTargetType
) -> Filter
where T: Into<ConditionValue>;
fn json_not_starts_with<T>(
&self,
value: T,
path: Option<JsonFilterPath>,
target_type: JsonTargetType
) -> Filter
where T: Into<ConditionValue>;
fn json_ends_with<T>(
&self,
value: T,
path: Option<JsonFilterPath>,
target_type: JsonTargetType
) -> Filter
where T: Into<ConditionValue>;
fn json_not_ends_with<T>(
&self,
value: T,
path: Option<JsonFilterPath>,
target_type: JsonTargetType
) -> Filter
where T: Into<ConditionValue>;
}
Expand description
Comparison methods for json fields
Required Methods§
fn json_equals<T>(&self, value: T, path: Option<JsonFilterPath>) -> Filterwhere T: Into<ConditionValue>,
fn json_not_equals<T>(&self, value: T, path: Option<JsonFilterPath>) -> Filterwhere T: Into<ConditionValue>,
fn json_less_than<T>(&self, value: T, path: Option<JsonFilterPath>) -> Filterwhere T: Into<ConditionValue>,
fn json_less_than_or_equals<T>( &self, value: T, path: Option<JsonFilterPath> ) -> Filterwhere T: Into<ConditionValue>,
fn json_greater_than<T>(&self, value: T, path: Option<JsonFilterPath>) -> Filterwhere T: Into<ConditionValue>,
fn json_greater_than_or_equals<T>( &self, value: T, path: Option<JsonFilterPath> ) -> Filterwhere T: Into<ConditionValue>,
fn json_contains<T>( &self, value: T, path: Option<JsonFilterPath>, target_type: JsonTargetType ) -> Filterwhere T: Into<ConditionValue>,
fn json_not_contains<T>( &self, value: T, path: Option<JsonFilterPath>, target_type: JsonTargetType ) -> Filterwhere T: Into<ConditionValue>,
fn json_starts_with<T>( &self, value: T, path: Option<JsonFilterPath>, target_type: JsonTargetType ) -> Filterwhere T: Into<ConditionValue>,
fn json_not_starts_with<T>( &self, value: T, path: Option<JsonFilterPath>, target_type: JsonTargetType ) -> Filterwhere T: Into<ConditionValue>,
fn json_ends_with<T>( &self, value: T, path: Option<JsonFilterPath>, target_type: JsonTargetType ) -> Filterwhere T: Into<ConditionValue>,
fn json_not_ends_with<T>( &self, value: T, path: Option<JsonFilterPath>, target_type: JsonTargetType ) -> Filterwhere T: Into<ConditionValue>,
Object Safety§
This trait is not object safe.