Struct travel::repository::todo_repository::TodoRepositoryConcrete
source · pub struct TodoRepositoryConcrete {
client: Client,
table_name: String,
}
Fields§
§client: Client
§table_name: String
Implementations§
Trait Implementations§
source§impl Clone for TodoRepositoryConcrete
impl Clone for TodoRepositoryConcrete
source§fn clone(&self) -> TodoRepositoryConcrete
fn clone(&self) -> TodoRepositoryConcrete
Returns a copy 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 TodoRepositoryConcrete
impl Debug for TodoRepositoryConcrete
source§impl TodoRepository for TodoRepositoryConcrete
impl TodoRepository for TodoRepositoryConcrete
source§async fn list_todo_list_group(
&self,
travel_id: &TravelId,
) -> Result<Vec<TodoListGroup>, TravelError>
async fn list_todo_list_group( &self, travel_id: &TravelId, ) -> Result<Vec<TodoListGroup>, TravelError>
get the auto-increment like value. https://hitohata.github.io/WhereWereWe/project/data-structure/#todo-list-group-id-counter Then, call get to-do list group using that data.
async fn find_todo_list_group_by_id( &self, travel_id: &TravelId, todo_list_group_id: &TodoListGroupId, ) -> Result<Option<TodoListGroup>, TravelError>
async fn save_todo_list_group( &self, todo_group: &TodoListGroup, ) -> Result<(), TravelError>
async fn find_todo_by_id( &self, travel_id: &TravelId, todo_list_group_id: &TodoListGroupId, todo: &TodoId, ) -> Result<Option<Todo>, TravelError>
async fn list_todo( &self, travel_id: &TravelId, todo_list_group_id: &TodoListGroupId, ) -> Result<Vec<Todo>, TravelError>
async fn save_todo( &self, travel_id: &TravelId, todo_list_group_id: &TodoListGroupId, todo: &Todo, ) -> Result<(), TravelError>
Auto Trait Implementations§
impl Freeze for TodoRepositoryConcrete
impl !RefUnwindSafe for TodoRepositoryConcrete
impl Send for TodoRepositoryConcrete
impl Sync for TodoRepositoryConcrete
impl Unpin for TodoRepositoryConcrete
impl !UnwindSafe for TodoRepositoryConcrete
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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.