Trait travel::service::todo_id_service::TodoIdService

source ·
pub trait TodoIdService {
    // Required methods
    async fn get_todo_list_group_id(
        &self,
        travel_id: &TravelId,
    ) -> Result<u32, TravelError>;
    async fn get_todo_id(
        &self,
        travel_id: &TravelId,
        todo_list_group_id: &TodoListGroupId,
    ) -> Result<u32, TravelError>;
}

Required Methods§

source

async fn get_todo_list_group_id( &self, travel_id: &TravelId, ) -> Result<u32, TravelError>

Get the latest + 1 to do list ID if there is no data in the DB, return 1. When this function is called, this function counts up the ID.

source

async fn get_todo_id( &self, travel_id: &TravelId, todo_list_group_id: &TodoListGroupId, ) -> Result<u32, TravelError>

Get the latest + 1 to do list ID if there is no data in the DB, return 1. When this function is called, this function counts up the ID.

Object Safety§

This trait is not object safe.

Implementors§