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

Add new saint

Deletes a saint

Get all saints

Find saint by ID

Update an existing saint

Implementations on Foreign Types

Add new saint

Deletes a saint

Get all saints

Find saint by ID

Update an existing saint

Implementors