Struct aws_sdk_databrew::types::ConditionExpression
source · #[non_exhaustive]pub struct ConditionExpression {
pub condition: String,
pub value: Option<String>,
pub target_column: String,
}
Expand description
Represents an individual condition that evaluates to true or false.
Conditions are used with recipe actions. The action is only performed for column values where the condition evaluates to true.
If a recipe requires more than one condition, then the recipe must specify multiple ConditionExpression
elements. Each condition is applied to the rows in a dataset first, before the recipe action is performed.
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.condition: String
A specific condition to apply to a recipe action. For more information, see Recipe structure in the Glue DataBrew Developer Guide.
value: Option<String>
A value that the condition must evaluate to for the condition to succeed.
target_column: String
A column to apply this condition to.
Implementations§
source§impl ConditionExpression
impl ConditionExpression
sourcepub fn condition(&self) -> &str
pub fn condition(&self) -> &str
A specific condition to apply to a recipe action. For more information, see Recipe structure in the Glue DataBrew Developer Guide.
sourcepub fn value(&self) -> Option<&str>
pub fn value(&self) -> Option<&str>
A value that the condition must evaluate to for the condition to succeed.
sourcepub fn target_column(&self) -> &str
pub fn target_column(&self) -> &str
A column to apply this condition to.
source§impl ConditionExpression
impl ConditionExpression
sourcepub fn builder() -> ConditionExpressionBuilder
pub fn builder() -> ConditionExpressionBuilder
Creates a new builder-style object to manufacture ConditionExpression
.
Trait Implementations§
source§impl Clone for ConditionExpression
impl Clone for ConditionExpression
source§fn clone(&self) -> ConditionExpression
fn clone(&self) -> ConditionExpression
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConditionExpression
impl Debug for ConditionExpression
source§impl PartialEq for ConditionExpression
impl PartialEq for ConditionExpression
impl StructuralPartialEq for ConditionExpression
Auto Trait Implementations§
impl Freeze for ConditionExpression
impl RefUnwindSafe for ConditionExpression
impl Send for ConditionExpression
impl Sync for ConditionExpression
impl Unpin for ConditionExpression
impl UnwindSafe for ConditionExpression
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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