pub trait Api<C: Send + Sync> {
    // Required methods
    fn add_application<'life0, 'life1, 'async_trait>(
        &'life0 self,
        application: Application,
        context: &'life1 C,
    ) -> Pin<Box<dyn Future<Output = Result<AddApplicationResponse, ApiError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn update_application<'life0, 'life1, 'async_trait>(
        &'life0 self,
        application_id: i64,
        application: Application,
        context: &'life1 C,
    ) -> Pin<Box<dyn Future<Output = Result<UpdateApplicationResponse, 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 add_application<'life0, 'life1, 'async_trait>( &'life0 self, application: Application, context: &'life1 C, ) -> Pin<Box<dyn Future<Output = Result<AddApplicationResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Prospective Student applying for a new course

Source

fn update_application<'life0, 'life1, 'async_trait>( &'life0 self, application_id: i64, application: Application, context: &'life1 C, ) -> Pin<Box<dyn Future<Output = Result<UpdateApplicationResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Update an existing application

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> + Has<Option<AuthData>> + Clone + Send + Sync + 'static,