Trait serde_dynamo::AttributeValue[][src]

pub trait AttributeValue: Sized {
Show 39 methods fn is_n(&self) -> bool;
fn is_s(&self) -> bool;
fn is_bool(&self) -> bool;
fn is_b(&self) -> bool;
fn is_null(&self) -> bool;
fn is_m(&self) -> bool;
fn is_l(&self) -> bool;
fn is_ss(&self) -> bool;
fn is_ns(&self) -> bool;
fn is_bs(&self) -> bool;
fn as_n(&self) -> Option<&str>;
fn as_s(&self) -> Option<&str>;
fn as_bool(&self) -> Option<bool>;
fn as_b(&self) -> Option<&[u8]>;
fn as_null(&self) -> Option<bool>;
fn as_m(&self) -> Option<&HashMap<String, Self>>;
fn as_l(&self) -> Option<&[Self]>;
fn as_ss(&self) -> Option<&[String]>;
fn as_ns(&self) -> Option<&[String]>;
fn into_n(self) -> Option<String>;
fn into_s(self) -> Option<String>;
fn into_bool(self) -> Option<bool>;
fn into_b(self) -> Option<Vec<u8>>;
fn into_null(self) -> Option<bool>;
fn into_m(self) -> Option<HashMap<String, Self>>;
fn into_l(self) -> Option<Vec<Self>>;
fn into_ss(self) -> Option<Vec<String>>;
fn into_ns(self) -> Option<Vec<String>>;
fn into_bs(self) -> Option<Vec<Vec<u8>>>;
fn construct_n(input: String) -> Self;
fn construct_s(input: String) -> Self;
fn construct_bool(input: bool) -> Self;
fn construct_b(input: &[u8]) -> Self;
fn construct_null(input: bool) -> Self;
fn construct_m(input: HashMap<String, Self>) -> Self;
fn construct_l(input: Vec<Self>) -> Self;
fn construct_ss(input: Vec<String>) -> Self;
fn construct_ns(input: Vec<String>) -> Self;
fn construct_bs(input: Vec<Vec<u8>>) -> Self;
}
Expand description

A type that can be used as a DynamoDb attribute value

This trait will not typically be used by user code. It exists to abstract over the AttributeValue definitions in different libraries: aws-sdk-dynamodb, rusoto_dynamodb, and rusoto_dynamodbstreams.

Required methods

Determine if the attribute value represents a number

Determine if the attribute value represents a string

Determine if the attribute value represents a boolean

Determine if the attribute value represents bytes

Determine if the attribute value represents a null

Determine if the attribute value represents a map of string/attribute value pairs

Determine if the attribute value represents a list of attribute values

Determine if the attribute value represents a list of strings

Determine if the attribute value represents a list of numbers

Determine if the attribute value represents a list of byte strings

Get the number without consuming the attribute value

Get the string without consuming the attribute value

Get the bool without consuming the attribute value

Get the bytes without consuming the attribute value

Get the bool without consuming the attribute value

Get the map without consuming the attribute value

Get the list without consuming the attribute value

Get the string list without consuming the attribute value

Get the number list without consuming the attribute value

Consume the attribute value and return the number

Consume the attribute value and return the string

Consume the attribute value and return the boolan

Consume the attribute value and return the bytes

Consume the attribute value and return the null

Consume the attribute value and return the map

Consume the attribute value and return the list

Consume the attribute value and return the string list

Consume the attribute value and return the number list

Consume the attribute value and return the byte string list

Create a new attribute value from a number

Create a new attribute value from a string

Create a new attribute value from a bool

Create a new attribute value from bytes

Create a new attribute value from a null

Create a new attribute value from a map

Create a new attribute value from a list

Create a new attribute value from a string list

Create a new attribute value from a number list

Create a new attribute value from a byte string list

Implementations on Foreign Types

Implementors