Struct serde_dynamo::string_set::StringSet
source · pub struct StringSet<T>(pub T);
Expand description
Serializes the wrapped value as a string set
This is useful for to_attribute_value
when you want to serialize a sequence as a set of strings.
§Examples
use serde_dynamo::{string_set::StringSet, AttributeValue};
let set = vec![
"orange",
"apple",
];
let val: AttributeValue = serde_dynamo::to_attribute_value(StringSet(set)).unwrap();
assert_eq!(val, AttributeValue::Ss(vec![
"orange".to_string(),
"apple".to_string(),
]));
Tuple Fields§
§0: T
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for StringSet<T>where
T: Freeze,
impl<T> RefUnwindSafe for StringSet<T>where
T: RefUnwindSafe,
impl<T> Send for StringSet<T>where
T: Send,
impl<T> Sync for StringSet<T>where
T: Sync,
impl<T> Unpin for StringSet<T>where
T: Unpin,
impl<T> UnwindSafe for StringSet<T>where
T: UnwindSafe,
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.
Creates a shared type from an unshared type.
Creates a shared type from an unshared type.
Creates a shared type from an unshared type.