Trait hvcg_student_openapi_application::Api [−][src]
pub trait Api<C: Send + Sync> { #[must_use] 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
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; #[must_use] 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
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; fn poll_ready(
&self,
_cx: &mut Context<'_>
) -> Poll<Result<(), Box<dyn Error + Send + Sync + 'static>>> { ... } }
Expand description
API
Required methods
#[must_use]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
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]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
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]Prospective Student applying for a new course
#[must_use]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
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]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
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]Update an existing application
Provided methods
Implementors
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,
[src]
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,
[src]fn poll_ready(
&self,
cx: &mut Context<'_>
) -> Poll<Result<(), Box<dyn Error + Send + Sync + 'static>>>
[src]
&self,
cx: &mut Context<'_>
) -> Poll<Result<(), Box<dyn Error + Send + Sync + 'static>>>
fn add_application<'life0, 'life1, 'async_trait>(
&'life0 self,
param_application: Application,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<AddApplicationResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
param_application: Application,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<AddApplicationResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn update_application<'life0, 'life1, 'async_trait>(
&'life0 self,
param_application_id: i64,
param_application: Application,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<UpdateApplicationResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
param_application_id: i64,
param_application: Application,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<UpdateApplicationResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,