Trait Api

Source
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§

Source

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

Source

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

Source

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.

Source

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.

Source

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

Source

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.

Source

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.

Source

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,

Gets user Details from UUID.

Provided Methods§

Source

fn poll_ready( &self, _cx: &mut Context<'_>, ) -> Poll<Result<(), Box<dyn Error + Send + Sync + 'static>>>

Implementors§

Source§

impl<S, C> Api<C> for Client<S, C>
where S: Service<(Request<Body>, C), Response = Response<Body>> + Clone + Sync + Send + 'static, S::Future: Send + 'static, S::Error: Into<Box<dyn Error + Send + Sync + 'static>> + Display, C: Has<XSpanIdString> + Clone + Send + Sync + 'static,