#[non_exhaustive]pub struct ConditionExpressionBuilder { /* private fields */ }Expand description
A builder for ConditionExpression.
Implementations§
Source§impl ConditionExpressionBuilder
impl ConditionExpressionBuilder
Sourcepub fn condition(self, input: impl Into<String>) -> Self
pub fn condition(self, input: impl Into<String>) -> Self
The condition of the condition expression.
This field is required.Sourcepub fn set_condition(self, input: Option<String>) -> Self
pub fn set_condition(self, input: Option<String>) -> Self
The condition of the condition expression.
Sourcepub fn get_condition(&self) -> &Option<String>
pub fn get_condition(&self) -> &Option<String>
The condition of the condition expression.
Sourcepub fn target_column(self, input: impl Into<String>) -> Self
pub fn target_column(self, input: impl Into<String>) -> Self
The target column of the condition expressions.
This field is required.Sourcepub fn set_target_column(self, input: Option<String>) -> Self
pub fn set_target_column(self, input: Option<String>) -> Self
The target column of the condition expressions.
Sourcepub fn get_target_column(&self) -> &Option<String>
pub fn get_target_column(&self) -> &Option<String>
The target column of the condition expressions.
Sourcepub fn build(self) -> Result<ConditionExpression, BuildError>
pub fn build(self) -> Result<ConditionExpression, BuildError>
Consumes the builder and constructs a ConditionExpression.
This method will fail if any of the following fields are not set:
Trait Implementations§
Source§impl Clone for ConditionExpressionBuilder
impl Clone for ConditionExpressionBuilder
Source§fn clone(&self) -> ConditionExpressionBuilder
fn clone(&self) -> ConditionExpressionBuilder
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 ConditionExpressionBuilder
impl Debug for ConditionExpressionBuilder
Source§impl Default for ConditionExpressionBuilder
impl Default for ConditionExpressionBuilder
Source§fn default() -> ConditionExpressionBuilder
fn default() -> ConditionExpressionBuilder
Returns the “default value” for a type. Read more
Source§impl PartialEq for ConditionExpressionBuilder
impl PartialEq for ConditionExpressionBuilder
Source§fn eq(&self, other: &ConditionExpressionBuilder) -> bool
fn eq(&self, other: &ConditionExpressionBuilder) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConditionExpressionBuilder
Auto Trait Implementations§
impl Freeze for ConditionExpressionBuilder
impl RefUnwindSafe for ConditionExpressionBuilder
impl Send for ConditionExpressionBuilder
impl Sync for ConditionExpressionBuilder
impl Unpin for ConditionExpressionBuilder
impl UnsafeUnpin for ConditionExpressionBuilder
impl UnwindSafe for ConditionExpressionBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.