Trait hvcg_biography_openapi_saint::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;
fn add_saint<'life0, 'async_trait>(
&'life0 self,
saint: Saint
) -> Pin<Box<dyn Future<Output = Result<AddSaintResponse, ApiError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn delete_saint<'life0, 'async_trait>(
&'life0 self,
id: Uuid
) -> Pin<Box<dyn Future<Output = Result<DeleteSaintResponse, ApiError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn get_all_saints<'life0, 'life1, 'async_trait>(
&'life0 self,
gender: Option<Gender>,
display_name: Option<String>,
vietnamese_name: Option<String>,
english_name: Option<String>,
feast_day: Option<String>,
sorts: Option<&'life1 Vec<SaintSortCriteria>>,
offset: Option<i32>,
count: Option<i32>
) -> Pin<Box<dyn Future<Output = Result<GetAllSaintsResponse, ApiError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn get_saint_by_id<'life0, 'async_trait>(
&'life0 self,
id: Uuid
) -> Pin<Box<dyn Future<Output = Result<GetSaintByIdResponse, ApiError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn update_saint<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
saint: Saint
) -> Pin<Box<dyn Future<Output = Result<UpdateSaintResponse, 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>>>
Add new saint
fn delete_saint<'life0, 'async_trait>(
&'life0 self,
id: Uuid
) -> Pin<Box<dyn Future<Output = Result<DeleteSaintResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_saint<'life0, 'async_trait>(
&'life0 self,
id: Uuid
) -> Pin<Box<dyn Future<Output = Result<DeleteSaintResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes a saint
fn get_all_saints<'life0, 'life1, 'async_trait>(
&'life0 self,
gender: Option<Gender>,
display_name: Option<String>,
vietnamese_name: Option<String>,
english_name: Option<String>,
feast_day: Option<String>,
sorts: Option<&'life1 Vec<SaintSortCriteria>>,
offset: Option<i32>,
count: Option<i32>
) -> Pin<Box<dyn Future<Output = Result<GetAllSaintsResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_all_saints<'life0, 'life1, 'async_trait>(
&'life0 self,
gender: Option<Gender>,
display_name: Option<String>,
vietnamese_name: Option<String>,
english_name: Option<String>,
feast_day: Option<String>,
sorts: Option<&'life1 Vec<SaintSortCriteria>>,
offset: Option<i32>,
count: Option<i32>
) -> Pin<Box<dyn Future<Output = Result<GetAllSaintsResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Get all saints
fn get_saint_by_id<'life0, 'async_trait>(
&'life0 self,
id: Uuid
) -> Pin<Box<dyn Future<Output = Result<GetSaintByIdResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_saint_by_id<'life0, 'async_trait>(
&'life0 self,
id: Uuid
) -> Pin<Box<dyn Future<Output = Result<GetSaintByIdResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Find saint by ID
Implementations on Foreign Types
Add new saint
fn delete_saint<'life0, 'async_trait>(
&'life0 self,
id: Uuid
) -> Pin<Box<dyn Future<Output = Result<DeleteSaintResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_saint<'life0, 'async_trait>(
&'life0 self,
id: Uuid
) -> Pin<Box<dyn Future<Output = Result<DeleteSaintResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes a saint
fn get_all_saints<'life0, 'life1, 'async_trait>(
&'life0 self,
gender: Option<Gender>,
display_name: Option<String>,
vietnamese_name: Option<String>,
english_name: Option<String>,
feast_day: Option<String>,
sorts: Option<&'life1 Vec<SaintSortCriteria>>,
offset: Option<i32>,
count: Option<i32>
) -> Pin<Box<dyn Future<Output = Result<GetAllSaintsResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_all_saints<'life0, 'life1, 'async_trait>(
&'life0 self,
gender: Option<Gender>,
display_name: Option<String>,
vietnamese_name: Option<String>,
english_name: Option<String>,
feast_day: Option<String>,
sorts: Option<&'life1 Vec<SaintSortCriteria>>,
offset: Option<i32>,
count: Option<i32>
) -> Pin<Box<dyn Future<Output = Result<GetAllSaintsResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Get all saints
fn get_saint_by_id<'life0, 'async_trait>(
&'life0 self,
id: Uuid
) -> Pin<Box<dyn Future<Output = Result<GetSaintByIdResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_saint_by_id<'life0, 'async_trait>(
&'life0 self,
id: Uuid
) -> Pin<Box<dyn Future<Output = Result<GetSaintByIdResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Find saint by ID
Update an existing saint