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§
Sourcefn 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 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
Sourcefn 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,
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