Struct test_utils::infrastructure::db::dynamo_db_client::TestDynamoTable
source · pub struct TestDynamoTable {
client: Client,
table_name: String,
}
Expand description
The table struct for the test.
Fields§
§client: Client
§table_name: String
Implementations§
source§impl TestDynamoTable
impl TestDynamoTable
pub async fn default(table_name: &str) -> Self
pub fn client(&self) -> Client
pub fn table_name(&self) -> String
sourcepub async fn generate_test_table(&self)
pub async fn generate_test_table(&self)
This function is used for the test.
sourcepub async fn delete_table(&self)
pub async fn delete_table(&self)
remove a table
Auto Trait Implementations§
impl Freeze for TestDynamoTable
impl !RefUnwindSafe for TestDynamoTable
impl Send for TestDynamoTable
impl Sync for TestDynamoTable
impl Unpin for TestDynamoTable
impl !UnwindSafe for TestDynamoTable
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.