Struct aws_sdk_amplifyuibuilder::types::builders::PredicateBuilder
source · #[non_exhaustive]pub struct PredicateBuilder { /* private fields */ }Expand description
A builder for Predicate.
Implementations§
source§impl PredicateBuilder
impl PredicateBuilder
sourcepub fn or(self, input: Predicate) -> Self
pub fn or(self, input: Predicate) -> Self
Appends an item to or.
To override the contents of this collection use set_or.
A list of predicates to combine logically.
sourcepub fn set_or(self, input: Option<Vec<Predicate>>) -> Self
pub fn set_or(self, input: Option<Vec<Predicate>>) -> Self
A list of predicates to combine logically.
sourcepub fn and(self, input: Predicate) -> Self
pub fn and(self, input: Predicate) -> Self
Appends an item to and.
To override the contents of this collection use set_and.
A list of predicates to combine logically.
sourcepub fn set_and(self, input: Option<Vec<Predicate>>) -> Self
pub fn set_and(self, input: Option<Vec<Predicate>>) -> Self
A list of predicates to combine logically.
sourcepub fn operator(self, input: impl Into<String>) -> Self
pub fn operator(self, input: impl Into<String>) -> Self
The operator to use to perform the evaluation.
sourcepub fn set_operator(self, input: Option<String>) -> Self
pub fn set_operator(self, input: Option<String>) -> Self
The operator to use to perform the evaluation.
sourcepub fn get_operator(&self) -> &Option<String>
pub fn get_operator(&self) -> &Option<String>
The operator to use to perform the evaluation.
sourcepub fn operand(self, input: impl Into<String>) -> Self
pub fn operand(self, input: impl Into<String>) -> Self
The value to use when performing the evaluation.
sourcepub fn set_operand(self, input: Option<String>) -> Self
pub fn set_operand(self, input: Option<String>) -> Self
The value to use when performing the evaluation.
sourcepub fn get_operand(&self) -> &Option<String>
pub fn get_operand(&self) -> &Option<String>
The value to use when performing the evaluation.
sourcepub fn operand_type(self, input: impl Into<String>) -> Self
pub fn operand_type(self, input: impl Into<String>) -> Self
The type of value to use when performing the evaluation.
sourcepub fn set_operand_type(self, input: Option<String>) -> Self
pub fn set_operand_type(self, input: Option<String>) -> Self
The type of value to use when performing the evaluation.
sourcepub fn get_operand_type(&self) -> &Option<String>
pub fn get_operand_type(&self) -> &Option<String>
The type of value to use when performing the evaluation.
Trait Implementations§
source§impl Clone for PredicateBuilder
impl Clone for PredicateBuilder
source§fn clone(&self) -> PredicateBuilder
fn clone(&self) -> PredicateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PredicateBuilder
impl Debug for PredicateBuilder
source§impl Default for PredicateBuilder
impl Default for PredicateBuilder
source§fn default() -> PredicateBuilder
fn default() -> PredicateBuilder
source§impl PartialEq for PredicateBuilder
impl PartialEq for PredicateBuilder
source§fn eq(&self, other: &PredicateBuilder) -> bool
fn eq(&self, other: &PredicateBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PredicateBuilder
Auto Trait Implementations§
impl Freeze for PredicateBuilder
impl RefUnwindSafe for PredicateBuilder
impl Send for PredicateBuilder
impl Sync for PredicateBuilder
impl Unpin for PredicateBuilder
impl UnwindSafe for PredicateBuilder
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