Skip to main content

eq_condition

Function eq_condition 

Source
pub fn eq_condition(field: &str, value: impl Into<Value>) -> Expression<Value>
Expand description

Build an eq condition field = value for Table<RestApi, _>.

value is accepted as anything that converts into CborValue — most scalars (i64, f64, bool, &str, String) implement this directly through ciborium’s From impls, so the call site stays readable: eq_condition("userId", 1i64).