pub enum SearchAttributePredicate {
Equals {
name: String,
value: SearchAttributeValue,
},
GreaterThan {
name: String,
value: SearchAttributeValue,
},
LessThan {
name: String,
value: SearchAttributeValue,
},
Contains {
name: String,
keyword: String,
},
}Expand description
Typed predicate over one custom search attribute.
Variants§
Equals
Match when the stored attribute value equals value exactly.
GreaterThan
Match when the stored ordered attribute value is greater than value.
Fields
§
value: SearchAttributeValueExclusive lower bound for the stored typed value.
LessThan
Match when the stored ordered attribute value is less than value.
Fields
§
value: SearchAttributeValueExclusive upper bound for the stored typed value.
Contains
Match when the stored attribute is a keyword list containing keyword.
Implementations§
Source§impl SearchAttributePredicate
impl SearchAttributePredicate
Sourcepub fn matches(&self, summary: &WorkflowSummary) -> bool
pub fn matches(&self, summary: &WorkflowSummary) -> bool
Returns whether this predicate matches the corresponding attribute on summary.
Missing attributes and mismatched typed comparisons do not match. Greater-than and less-than
comparisons are supported for integer, float, and datetime values. Contains matches only
stored SearchAttributeValue::KeywordList attributes.
Trait Implementations§
Source§impl Clone for SearchAttributePredicate
impl Clone for SearchAttributePredicate
Source§fn clone(&self) -> SearchAttributePredicate
fn clone(&self) -> SearchAttributePredicate
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 SearchAttributePredicate
impl Debug for SearchAttributePredicate
Source§impl<'de> Deserialize<'de> for SearchAttributePredicate
impl<'de> Deserialize<'de> for SearchAttributePredicate
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 PartialEq for SearchAttributePredicate
impl PartialEq for SearchAttributePredicate
Source§fn eq(&self, other: &SearchAttributePredicate) -> bool
fn eq(&self, other: &SearchAttributePredicate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SearchAttributePredicate
impl Serialize for SearchAttributePredicate
impl StructuralPartialEq for SearchAttributePredicate
Auto Trait Implementations§
impl Freeze for SearchAttributePredicate
impl RefUnwindSafe for SearchAttributePredicate
impl Send for SearchAttributePredicate
impl Sync for SearchAttributePredicate
impl Unpin for SearchAttributePredicate
impl UnsafeUnpin for SearchAttributePredicate
impl UnwindSafe for SearchAttributePredicate
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