pub struct QueryOutput {
pub items: Option<Vec<HashMap<String, AttributeValue>>>,
pub count: i32,
pub scanned_count: i32,
pub last_evaluated_key: HashMap<String, AttributeValue>,
pub consumed_capacity: Option<ConsumedCapacity>,
}Expand description
Output for the Query operation.
Fields§
§items: Option<Vec<HashMap<String, AttributeValue>>>An array of item attributes that match the query conditions.
None when Select=COUNT (omitted from JSON), Some(vec) otherwise
(always serialized, even when empty).
count: i32The number of items in the response.
scanned_count: i32The number of items evaluated before the filter expression was applied.
last_evaluated_key: HashMap<String, AttributeValue>The primary key of the item where the query operation stopped. Use this
value as ExclusiveStartKey in a subsequent query to continue.
consumed_capacity: Option<ConsumedCapacity>The capacity units consumed by the operation.
Trait Implementations§
Source§impl Clone for QueryOutput
impl Clone for QueryOutput
Source§fn clone(&self) -> QueryOutput
fn clone(&self) -> QueryOutput
Returns a duplicate 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 QueryOutput
impl Debug for QueryOutput
Source§impl Default for QueryOutput
impl Default for QueryOutput
Source§fn default() -> QueryOutput
fn default() -> QueryOutput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for QueryOutput
impl<'de> Deserialize<'de> for QueryOutput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for QueryOutput
impl RefUnwindSafe for QueryOutput
impl Send for QueryOutput
impl Sync for QueryOutput
impl Unpin for QueryOutput
impl UnsafeUnpin for QueryOutput
impl UnwindSafe for QueryOutput
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