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
) -> Pin<Box<dyn Future<Output = Result<DeleteSaintResponse, ApiError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; fn get_all_saints<'life0, 'async_trait>(
&'life0 self,
gender: Option<Gender>,
display_name: Option<String>,
offset: Option<Uuid>,
count: Option<i32>
) -> Pin<Box<dyn Future<Output = Result<GetAllSaintsResponse, 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; fn update_saint<'life0, 'async_trait>(
&'life0 self,
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
) -> 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
) -> Pin<Box<dyn Future<Output = Result<DeleteSaintResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes a saint
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
fn update_saint<'life0, 'async_trait>(
&'life0 self,
saint: Saint
) -> Pin<Box<dyn Future<Output = Result<UpdateSaintResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn update_saint<'life0, 'async_trait>(
&'life0 self,
saint: Saint
) -> Pin<Box<dyn Future<Output = Result<UpdateSaintResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Update an existing saint
Implementations on Foreign Types
Add new saint
fn delete_saint<'life0, 'async_trait>(
&'life0 self
) -> 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
) -> Pin<Box<dyn Future<Output = Result<DeleteSaintResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Deletes a saint
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
fn update_saint<'life0, 'async_trait>(
&'life0 self,
saint: Saint
) -> Pin<Box<dyn Future<Output = Result<UpdateSaintResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn update_saint<'life0, 'async_trait>(
&'life0 self,
saint: Saint
) -> Pin<Box<dyn Future<Output = Result<UpdateSaintResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Update an existing saint