Struct aws_sdk_amplifyuibuilder::types::Predicate
source · #[non_exhaustive]pub struct Predicate {
pub or: Option<Vec<Predicate>>,
pub and: Option<Vec<Predicate>>,
pub field: Option<String>,
pub operator: Option<String>,
pub operand: Option<String>,
pub operand_type: Option<String>,
}Expand description
Stores information for generating Amplify DataStore queries. Use a Predicate to retrieve a subset of the data in a collection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.or: Option<Vec<Predicate>>A list of predicates to combine logically.
and: Option<Vec<Predicate>>A list of predicates to combine logically.
field: Option<String>The field to query.
operator: Option<String>The operator to use to perform the evaluation.
operand: Option<String>The value to use when performing the evaluation.
operand_type: Option<String>The type of value to use when performing the evaluation.
Implementations§
source§impl Predicate
impl Predicate
sourcepub fn or(&self) -> &[Predicate]
pub fn or(&self) -> &[Predicate]
A list of predicates to combine logically.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .or.is_none().
sourcepub fn and(&self) -> &[Predicate]
pub fn and(&self) -> &[Predicate]
A list of predicates to combine logically.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .and.is_none().
sourcepub fn operand_type(&self) -> Option<&str>
pub fn operand_type(&self) -> Option<&str>
The type of value to use when performing the evaluation.
Trait Implementations§
source§impl PartialEq for Predicate
impl PartialEq for Predicate
impl StructuralPartialEq for Predicate
Auto Trait Implementations§
impl Freeze for Predicate
impl RefUnwindSafe for Predicate
impl Send for Predicate
impl Sync for Predicate
impl Unpin for Predicate
impl UnwindSafe for Predicate
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
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more