pub struct QueryPredicate {
pub field: String,
pub operator: Operator,
pub value: QueryValue,
}Expand description
A single query predicate (field operator value)
Fields§
§field: StringField name (e.g., “severity”, “gen_ai.system”)
operator: OperatorComparison operator
value: QueryValueValue to compare against
Trait Implementations§
Source§impl Clone for QueryPredicate
impl Clone for QueryPredicate
Source§fn clone(&self) -> QueryPredicate
fn clone(&self) -> QueryPredicate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueryPredicate
impl Debug for QueryPredicate
Source§impl Display for QueryPredicate
impl Display for QueryPredicate
Source§impl PartialEq for QueryPredicate
impl PartialEq for QueryPredicate
Source§fn eq(&self, other: &QueryPredicate) -> bool
fn eq(&self, other: &QueryPredicate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QueryPredicate
Auto Trait Implementations§
impl Freeze for QueryPredicate
impl RefUnwindSafe for QueryPredicate
impl Send for QueryPredicate
impl Sync for QueryPredicate
impl Unpin for QueryPredicate
impl UnsafeUnpin for QueryPredicate
impl UnwindSafe for QueryPredicate
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