Struct aws_sdk_dynamodb::types::builders::ProjectionBuilder
source · #[non_exhaustive]pub struct ProjectionBuilder { /* private fields */ }
Expand description
A builder for Projection
.
Implementations§
source§impl ProjectionBuilder
impl ProjectionBuilder
sourcepub fn projection_type(self, input: ProjectionType) -> Self
pub fn projection_type(self, input: ProjectionType) -> Self
The set of attributes that are projected into the index:
-
KEYS_ONLY
- Only the index and primary keys are projected into the index. -
INCLUDE
- In addition to the attributes described inKEYS_ONLY
, the secondary index will include other non-key attributes that you specify. -
ALL
- All of the table attributes are projected into the index.
When using the DynamoDB console, ALL
is selected by default.
sourcepub fn set_projection_type(self, input: Option<ProjectionType>) -> Self
pub fn set_projection_type(self, input: Option<ProjectionType>) -> Self
The set of attributes that are projected into the index:
-
KEYS_ONLY
- Only the index and primary keys are projected into the index. -
INCLUDE
- In addition to the attributes described inKEYS_ONLY
, the secondary index will include other non-key attributes that you specify. -
ALL
- All of the table attributes are projected into the index.
When using the DynamoDB console, ALL
is selected by default.
sourcepub fn get_projection_type(&self) -> &Option<ProjectionType>
pub fn get_projection_type(&self) -> &Option<ProjectionType>
The set of attributes that are projected into the index:
-
KEYS_ONLY
- Only the index and primary keys are projected into the index. -
INCLUDE
- In addition to the attributes described inKEYS_ONLY
, the secondary index will include other non-key attributes that you specify. -
ALL
- All of the table attributes are projected into the index.
When using the DynamoDB console, ALL
is selected by default.
sourcepub fn non_key_attributes(self, input: impl Into<String>) -> Self
pub fn non_key_attributes(self, input: impl Into<String>) -> Self
Appends an item to non_key_attributes
.
To override the contents of this collection use set_non_key_attributes
.
Represents the non-key attribute names which will be projected into the index.
For local secondary indexes, the total count of NonKeyAttributes
summed across all of the local secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
sourcepub fn set_non_key_attributes(self, input: Option<Vec<String>>) -> Self
pub fn set_non_key_attributes(self, input: Option<Vec<String>>) -> Self
Represents the non-key attribute names which will be projected into the index.
For local secondary indexes, the total count of NonKeyAttributes
summed across all of the local secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
sourcepub fn get_non_key_attributes(&self) -> &Option<Vec<String>>
pub fn get_non_key_attributes(&self) -> &Option<Vec<String>>
Represents the non-key attribute names which will be projected into the index.
For local secondary indexes, the total count of NonKeyAttributes
summed across all of the local secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
sourcepub fn build(self) -> Projection
pub fn build(self) -> Projection
Consumes the builder and constructs a Projection
.
Trait Implementations§
source§impl Clone for ProjectionBuilder
impl Clone for ProjectionBuilder
source§fn clone(&self) -> ProjectionBuilder
fn clone(&self) -> ProjectionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProjectionBuilder
impl Debug for ProjectionBuilder
source§impl Default for ProjectionBuilder
impl Default for ProjectionBuilder
source§fn default() -> ProjectionBuilder
fn default() -> ProjectionBuilder
source§impl PartialEq for ProjectionBuilder
impl PartialEq for ProjectionBuilder
source§fn eq(&self, other: &ProjectionBuilder) -> bool
fn eq(&self, other: &ProjectionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProjectionBuilder
Auto Trait Implementations§
impl Freeze for ProjectionBuilder
impl RefUnwindSafe for ProjectionBuilder
impl Send for ProjectionBuilder
impl Sync for ProjectionBuilder
impl Unpin for ProjectionBuilder
impl UnwindSafe for ProjectionBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more