Trait hvcg_student_openapi_application::ApiNoContext [−][src]
pub trait ApiNoContext<C: Send + Sync> { fn poll_ready(
&self,
_cx: &mut Context<'_>
) -> Poll<Result<(), Box<dyn Error + Send + Sync + 'static>>>; fn context(&self) -> &C; #[must_use] fn add_application<'life0, 'async_trait>(
&'life0 self,
application: Application
) -> Pin<Box<dyn Future<Output = Result<AddApplicationResponse, ApiError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; #[must_use] fn update_application<'life0, 'async_trait>(
&'life0 self,
application_id: i64,
application: Application
) -> Pin<Box<dyn Future<Output = Result<UpdateApplicationResponse, ApiError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; }
Expand description
API where Context
isn’t passed on every API call
Required methods
fn poll_ready(
&self,
_cx: &mut Context<'_>
) -> Poll<Result<(), Box<dyn Error + Send + Sync + 'static>>>
[src]
fn poll_ready(
&self,
_cx: &mut Context<'_>
) -> Poll<Result<(), Box<dyn Error + Send + Sync + 'static>>>
[src]fn context(&self) -> &C
[src]
fn context(&self) -> &C
[src]#[must_use]fn add_application<'life0, 'async_trait>(
&'life0 self,
application: Application
) -> Pin<Box<dyn Future<Output = Result<AddApplicationResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]fn add_application<'life0, 'async_trait>(
&'life0 self,
application: Application
) -> Pin<Box<dyn Future<Output = Result<AddApplicationResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]Prospective Student applying for a new course
#[must_use]fn update_application<'life0, 'async_trait>(
&'life0 self,
application_id: i64,
application: Application
) -> Pin<Box<dyn Future<Output = Result<UpdateApplicationResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]fn update_application<'life0, 'async_trait>(
&'life0 self,
application_id: i64,
application: Application
) -> Pin<Box<dyn Future<Output = Result<UpdateApplicationResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]Update an existing application
Implementations on Foreign Types
impl<T: Api<C> + Send + Sync, C: Clone + Send + Sync> ApiNoContext<C> for ContextWrapper<T, C>
[src]
impl<T: Api<C> + Send + Sync, C: Clone + Send + Sync> ApiNoContext<C> for ContextWrapper<T, C>
[src]fn add_application<'life0, 'async_trait>(
&'life0 self,
application: Application
) -> Pin<Box<dyn Future<Output = Result<AddApplicationResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
fn add_application<'life0, 'async_trait>(
&'life0 self,
application: Application
) -> Pin<Box<dyn Future<Output = Result<AddApplicationResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]Prospective Student applying for a new course
fn update_application<'life0, 'async_trait>(
&'life0 self,
application_id: i64,
application: Application
) -> Pin<Box<dyn Future<Output = Result<UpdateApplicationResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
fn update_application<'life0, 'async_trait>(
&'life0 self,
application_id: i64,
application: Application
) -> Pin<Box<dyn Future<Output = Result<UpdateApplicationResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]Update an existing application