Struct aws_sdk_connect::types::FieldValueUnion
source · #[non_exhaustive]pub struct FieldValueUnion {
pub boolean_value: bool,
pub double_value: Option<f64>,
pub empty_value: Option<EmptyFieldValue>,
pub string_value: Option<String>,
}
Expand description
Object to store union of Field values.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.boolean_value: bool
A Boolean number value type.
double_value: Option<f64>
a Double number value type.
empty_value: Option<EmptyFieldValue>
An empty value.
string_value: Option<String>
String value type.
Implementations§
source§impl FieldValueUnion
impl FieldValueUnion
sourcepub fn boolean_value(&self) -> bool
pub fn boolean_value(&self) -> bool
A Boolean number value type.
sourcepub fn double_value(&self) -> Option<f64>
pub fn double_value(&self) -> Option<f64>
a Double number value type.
sourcepub fn empty_value(&self) -> Option<&EmptyFieldValue>
pub fn empty_value(&self) -> Option<&EmptyFieldValue>
An empty value.
sourcepub fn string_value(&self) -> Option<&str>
pub fn string_value(&self) -> Option<&str>
String value type.
source§impl FieldValueUnion
impl FieldValueUnion
sourcepub fn builder() -> FieldValueUnionBuilder
pub fn builder() -> FieldValueUnionBuilder
Creates a new builder-style object to manufacture FieldValueUnion
.
Trait Implementations§
source§impl Clone for FieldValueUnion
impl Clone for FieldValueUnion
source§fn clone(&self) -> FieldValueUnion
fn clone(&self) -> FieldValueUnion
Returns a copy of the value. Read more
1.0.0 · 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 FieldValueUnion
impl Debug for FieldValueUnion
source§impl PartialEq for FieldValueUnion
impl PartialEq for FieldValueUnion
source§fn eq(&self, other: &FieldValueUnion) -> bool
fn eq(&self, other: &FieldValueUnion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FieldValueUnion
Auto Trait Implementations§
impl Freeze for FieldValueUnion
impl RefUnwindSafe for FieldValueUnion
impl Send for FieldValueUnion
impl Sync for FieldValueUnion
impl Unpin for FieldValueUnion
impl UnwindSafe for FieldValueUnion
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> 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>
Creates a shared type from an unshared type.