Trait hvcg_biography_openapi_saint::Api [−][src]
pub trait Api<C: Send + Sync> { fn add_saint<'life0, 'life1, 'async_trait>(
&'life0 self,
saint: Saint,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<AddSaintResponse, ApiError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; fn delete_saint<'life0, 'life1, 'async_trait>(
&'life0 self,
id: Uuid,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<DeleteSaintResponse, 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>,
offset: Option<Uuid>,
count: Option<i32>,
context: &'life1 C
) -> 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, 'life1, 'async_trait>(
&'life0 self,
id: Uuid,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<GetSaintByIdResponse, ApiError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; fn update_saint<'life0, 'life1, 'async_trait>(
&'life0 self,
id: Uuid,
saint: Saint,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<UpdateSaintResponse, 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
Add new saint
Deletes a saint
fn get_all_saints<'life0, 'life1, 'async_trait>(
&'life0 self,
gender: Option<Gender>,
display_name: Option<String>,
offset: Option<Uuid>,
count: Option<i32>,
context: &'life1 C
) -> 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>,
offset: Option<Uuid>,
count: Option<i32>,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<GetAllSaintsResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Get all saints
Find saint by ID
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,