Trait korat::AttributeValueConverter
[−]
[src]
pub trait AttributeValueConverter: Sized { fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>; fn to_attribute_value(self) -> AttributeValue; }
Required Methods
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
Implementations on Foreign Types
impl AttributeValueConverter for String
[src]
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
[src]
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
[src]
impl AttributeValueConverter for HashSet<String>
[src]
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
[src]
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
[src]
impl AttributeValueConverter for HashSet<Vec<u8>>
[src]
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
[src]
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
[src]
impl AttributeValueConverter for Vec<u8>
[src]
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
[src]
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
[src]
impl AttributeValueConverter for bool
[src]
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
[src]
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
[src]
impl<T: DynamoDBItem> AttributeValueConverter for Vec<T>
[src]
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
[src]
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
[src]
impl<T: AttributeValueConverter> AttributeValueConverter for Option<T>
[src]
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
[src]
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
[src]
impl AttributeValueConverter for u16
[src]
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
[src]
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
[src]
impl AttributeValueConverter for u32
[src]
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
[src]
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
[src]
impl AttributeValueConverter for i32
[src]
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
[src]
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
[src]
impl AttributeValueConverter for i64
[src]
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
[src]
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
[src]
impl AttributeValueConverter for f32
[src]
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
[src]
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
[src]
impl AttributeValueConverter for f64
[src]
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
[src]
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
[src]
impl AttributeValueConverter for HashSet<u16>
[src]
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
[src]
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
[src]
impl AttributeValueConverter for Vec<u16>
[src]
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
[src]
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
[src]
impl AttributeValueConverter for HashSet<u32>
[src]
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
[src]
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
[src]
impl AttributeValueConverter for Vec<u32>
[src]
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
[src]
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
[src]
impl AttributeValueConverter for HashSet<i32>
[src]
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
[src]
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
[src]
impl AttributeValueConverter for Vec<i32>
[src]
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
[src]
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
[src]
impl AttributeValueConverter for HashSet<i64>
[src]
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
[src]
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
[src]
impl AttributeValueConverter for Vec<i64>
[src]
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
[src]
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
[src]
impl AttributeValueConverter for Vec<f32>
[src]
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
[src]
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
[src]
impl AttributeValueConverter for Vec<f64>
[src]
fn from_attribute_value(
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
[src]
attribute_value: AttributeValue
) -> Result<Self, ConversionError>
fn to_attribute_value(self) -> AttributeValue
[src]
Implementors
impl<T: DynamoDBItem> AttributeValueConverter for T