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, 'life2, '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>,
        context: &'life2 C
    ) -> Pin<Box<dyn Future<Output = Result<GetAllSaintsResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: '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

Get all saints

Find saint by ID

Update an existing saint

Provided methods

Implementors