#[non_exhaustive]pub struct ComponentConditionPropertyBuilder { /* private fields */ }Expand description
A builder for ComponentConditionProperty.
Implementations§
source§impl ComponentConditionPropertyBuilder
impl ComponentConditionPropertyBuilder
sourcepub fn set_property(self, input: Option<String>) -> Self
pub fn set_property(self, input: Option<String>) -> Self
The name of the conditional property.
sourcepub fn get_property(&self) -> &Option<String>
pub fn get_property(&self) -> &Option<String>
The name of the conditional property.
sourcepub fn field(self, input: impl Into<String>) -> Self
pub fn field(self, input: impl Into<String>) -> Self
The name of a field. Specify this when the property is a data model.
sourcepub fn set_field(self, input: Option<String>) -> Self
pub fn set_field(self, input: Option<String>) -> Self
The name of a field. Specify this when the property is a data model.
sourcepub fn get_field(&self) -> &Option<String>
pub fn get_field(&self) -> &Option<String>
The name of a field. Specify this when the property is a data model.
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, such as eq to represent equals.
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, such as eq to represent equals.
sourcepub fn get_operator(&self) -> &Option<String>
pub fn get_operator(&self) -> &Option<String>
The operator to use to perform the evaluation, such as eq to represent equals.
sourcepub fn set_operand(self, input: Option<String>) -> Self
pub fn set_operand(self, input: Option<String>) -> Self
The value of the property to evaluate.
sourcepub fn get_operand(&self) -> &Option<String>
pub fn get_operand(&self) -> &Option<String>
The value of the property to evaluate.
sourcepub fn then(self, input: impl Into<Box<ComponentProperty>>) -> Self
pub fn then(self, input: impl Into<Box<ComponentProperty>>) -> Self
The value to assign to the property if the condition is met.
sourcepub fn set_then(self, input: Option<Box<ComponentProperty>>) -> Self
pub fn set_then(self, input: Option<Box<ComponentProperty>>) -> Self
The value to assign to the property if the condition is met.
sourcepub fn get_then(&self) -> &Option<Box<ComponentProperty>>
pub fn get_then(&self) -> &Option<Box<ComponentProperty>>
The value to assign to the property if the condition is met.
sourcepub fn else(self, input: impl Into<Box<ComponentProperty>>) -> Self
pub fn else(self, input: impl Into<Box<ComponentProperty>>) -> Self
The value to assign to the property if the condition is not met.
sourcepub fn set_else(self, input: Option<Box<ComponentProperty>>) -> Self
pub fn set_else(self, input: Option<Box<ComponentProperty>>) -> Self
The value to assign to the property if the condition is not met.
sourcepub fn get_else(&self) -> &Option<Box<ComponentProperty>>
pub fn get_else(&self) -> &Option<Box<ComponentProperty>>
The value to assign to the property if the condition is not met.
sourcepub fn operand_type(self, input: impl Into<String>) -> Self
pub fn operand_type(self, input: impl Into<String>) -> Self
The type of the property to evaluate.
sourcepub fn set_operand_type(self, input: Option<String>) -> Self
pub fn set_operand_type(self, input: Option<String>) -> Self
The type of the property to evaluate.
sourcepub fn get_operand_type(&self) -> &Option<String>
pub fn get_operand_type(&self) -> &Option<String>
The type of the property to evaluate.
sourcepub fn build(self) -> ComponentConditionProperty
pub fn build(self) -> ComponentConditionProperty
Consumes the builder and constructs a ComponentConditionProperty.
Trait Implementations§
source§impl Clone for ComponentConditionPropertyBuilder
impl Clone for ComponentConditionPropertyBuilder
source§fn clone(&self) -> ComponentConditionPropertyBuilder
fn clone(&self) -> ComponentConditionPropertyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for ComponentConditionPropertyBuilder
impl Default for ComponentConditionPropertyBuilder
source§fn default() -> ComponentConditionPropertyBuilder
fn default() -> ComponentConditionPropertyBuilder
source§impl PartialEq for ComponentConditionPropertyBuilder
impl PartialEq for ComponentConditionPropertyBuilder
source§fn eq(&self, other: &ComponentConditionPropertyBuilder) -> bool
fn eq(&self, other: &ComponentConditionPropertyBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ComponentConditionPropertyBuilder
Auto Trait Implementations§
impl Freeze for ComponentConditionPropertyBuilder
impl RefUnwindSafe for ComponentConditionPropertyBuilder
impl Send for ComponentConditionPropertyBuilder
impl Sync for ComponentConditionPropertyBuilder
impl Unpin for ComponentConditionPropertyBuilder
impl UnwindSafe for ComponentConditionPropertyBuilder
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