pub trait Api<C: Send + Sync> {
// Required methods
fn bobby_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<BobbyDeleteResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn game_post<'life0, 'life1, 'async_trait>(
&'life0 self,
game_end_dto: GameEndDto,
context: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<GamePostResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn maps_get<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<MapsGetResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_post<'life0, 'life1, 'async_trait>(
&'life0 self,
create_user_dto: CreateUserDto,
context: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<RegisterPostResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn statistics_get<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<StatisticsGetResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn map_level_get<'life0, 'life1, 'async_trait>(
&'life0 self,
level: String,
context: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<MapLevelGetResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn statistics_uuid_get<'life0, 'life1, 'async_trait>(
&'life0 self,
uuid: String,
context: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<StatisticsUuidGetResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn user_uuid_get<'life0, 'life1, 'async_trait>(
&'life0 self,
uuid: String,
context: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<UserUuidGetResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
// Provided method
fn poll_ready(
&self,
_cx: &mut Context<'_>,
) -> Poll<Result<(), Box<dyn Error + Send + Sync + 'static>>> { ... }
}
Expand description
API
Required Methods§
Sourcefn bobby_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<BobbyDeleteResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn bobby_delete<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<BobbyDeleteResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Calls for Booby Drop Tables
Sourcefn game_post<'life0, 'life1, 'async_trait>(
&'life0 self,
game_end_dto: GameEndDto,
context: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<GamePostResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn game_post<'life0, 'life1, 'async_trait>(
&'life0 self,
game_end_dto: GameEndDto,
context: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<GamePostResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Submit game end data
Sourcefn maps_get<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<MapsGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn maps_get<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<MapsGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetch all existing maps.
Sourcefn register_post<'life0, 'life1, 'async_trait>(
&'life0 self,
create_user_dto: CreateUserDto,
context: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<RegisterPostResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn register_post<'life0, 'life1, 'async_trait>(
&'life0 self,
create_user_dto: CreateUserDto,
context: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<RegisterPostResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Creates a User in our System.
Sourcefn statistics_get<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<StatisticsGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn statistics_get<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<StatisticsGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetch all statistics
Sourcefn map_level_get<'life0, 'life1, 'async_trait>(
&'life0 self,
level: String,
context: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<MapLevelGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn map_level_get<'life0, 'life1, 'async_trait>(
&'life0 self,
level: String,
context: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<MapLevelGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetch BeatMap of a specific level.
Sourcefn statistics_uuid_get<'life0, 'life1, 'async_trait>(
&'life0 self,
uuid: String,
context: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<StatisticsUuidGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn statistics_uuid_get<'life0, 'life1, 'async_trait>(
&'life0 self,
uuid: String,
context: &'life1 C,
) -> Pin<Box<dyn Future<Output = Result<StatisticsUuidGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetch details for a specific run.