pub struct AttributeMatch<T> { /* private fields */ }Expand description
Describes a scalar Attribute predicate.
Create a match with an associated factory and pass it to
crate::Client::wait_for_attribute_match or
crate::Client::wait_for_attribute_map_instance_match. String and Boolean
Attributes support equality operators. Integer and floating-point Attributes
support every operator. A missing Attribute never matches.
§Examples
use dex_sdk::AttributeMatch;
let changed = AttributeMatch::greater_than(3_i64);Implementations§
Source§impl<T> AttributeMatch<T>
impl<T> AttributeMatch<T>
Sourcepub fn not_equal_to(operand: T) -> Self
pub fn not_equal_to(operand: T) -> Self
Creates a not-equal match. A missing Attribute does not match.
Sourcepub fn greater_than(operand: T) -> Self
pub fn greater_than(operand: T) -> Self
Creates a numeric greater-than match.
Sourcepub fn greater_than_or_equal(operand: T) -> Self
pub fn greater_than_or_equal(operand: T) -> Self
Creates a numeric greater-than-or-equal match.
Sourcepub fn less_than_or_equal(operand: T) -> Self
pub fn less_than_or_equal(operand: T) -> Self
Creates a numeric less-than-or-equal match.
Auto Trait Implementations§
impl<T> Freeze for AttributeMatch<T>where
T: Freeze,
impl<T> RefUnwindSafe for AttributeMatch<T>where
T: RefUnwindSafe,
impl<T> Send for AttributeMatch<T>where
T: Send,
impl<T> Sync for AttributeMatch<T>where
T: Sync,
impl<T> Unpin for AttributeMatch<T>where
T: Unpin,
impl<T> UnsafeUnpin for AttributeMatch<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for AttributeMatch<T>where
T: UnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request