Trait hvcg_governance_openapi_catholic_polity::Api[][src]

pub trait Api<C: Send + Sync> {
Show 26 methods fn add_deanery<'life0, 'life1, 'async_trait>(
        &'life0 self,
        deanery_mutation: DeaneryMutation,
        context: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<AddDeaneryResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn delete_deanery<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: Uuid,
        context: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<DeleteDeaneryResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn get_deaneries<'life0, 'life1, 'async_trait>(
        &'life0 self,
        diocese_id: Option<Uuid>,
        name: Option<String>,
        offset: Option<i32>,
        count: Option<i32>,
        context: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<GetDeaneriesResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn get_deanery_by_id<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: Uuid,
        context: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<GetDeaneryByIdResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn update_deanery<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: Uuid,
        deanery_mutation: DeaneryMutation,
        context: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<UpdateDeaneryResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn add_diocese<'life0, 'life1, 'async_trait>(
        &'life0 self,
        diocese_mutation: DioceseMutation,
        context: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<AddDioceseResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn delete_diocese<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: Uuid,
        context: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<DeleteDioceseResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn get_diocese_by_id<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: Uuid,
        context: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<GetDioceseByIdResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn get_dioceses<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        province_id: Option<Uuid>,
        province_code: Option<Code>,
        province_name: Option<String>,
        name: Option<String>,
        location_name: Option<String>,
        location_address: Option<String>,
        location_email: Option<String>,
        person_in_charge: Option<String>,
        sorts: Option<&'life1 Vec<DioceseSortCriteria>>,
        offset: Option<i32>,
        count: Option<i32>,
        context: &'life2 C
    ) -> Pin<Box<dyn Future<Output = Result<GetDiocesesResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
fn update_diocese<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: Uuid,
        diocese_mutation: DioceseMutation,
        context: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<UpdateDioceseResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn add_institute<'life0, 'life1, 'async_trait>(
        &'life0 self,
        institute_mutation: InstituteMutation,
        context: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<AddInstituteResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn delete_institute<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: Uuid,
        context: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<DeleteInstituteResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn get_institute_by_id<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: Uuid,
        context: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<GetInstituteByIdResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn get_institutes<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        name: Option<String>,
        location_name: Option<String>,
        location_address: Option<String>,
        location_email: Option<String>,
        person_in_charge: Option<String>,
        sorts: Option<&'life1 Vec<InstituteSortCriteria>>,
        offset: Option<i32>,
        count: Option<i32>,
        context: &'life2 C
    ) -> Pin<Box<dyn Future<Output = Result<GetInstitutesResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
fn update_institute<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: Uuid,
        institute_mutation: InstituteMutation,
        context: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<UpdateInstituteResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn add_parish<'life0, 'life1, 'async_trait>(
        &'life0 self,
        parish_mutation: Option<ParishMutation>,
        context: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<AddParishResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn delete_parish<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: Uuid,
        context: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<DeleteParishResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn get_parish_by_id<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: Uuid,
        context: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<GetParishByIdResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn get_parishes<'life0, 'life1, 'async_trait>(
        &'life0 self,
        deanery_id: Option<Uuid>,
        diocese_id: Option<Uuid>,
        name: Option<String>,
        offset: Option<i32>,
        count: Option<i32>,
        context: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<GetParishesResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn update_parish<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: Uuid,
        parish_mutation: Option<ParishMutation>,
        context: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<UpdateParishResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn add_province<'life0, 'life1, 'async_trait>(
        &'life0 self,
        province_mutation: Option<ProvinceMutation>,
        context: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<AddProvinceResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn delete_province<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: Uuid,
        context: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<DeleteProvinceResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn get_province_by_id<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: Uuid,
        context: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<GetProvinceByIdResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn get_provinces<'life0, 'life1, 'async_trait>(
        &'life0 self,
        name: Option<String>,
        province_code: Option<Code>,
        offset: Option<i32>,
        count: Option<i32>,
        context: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<GetProvincesResponse, ApiError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn update_province<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: Uuid,
        province_mutation: Option<ProvinceMutation>,
        context: &'life1 C
    ) -> Pin<Box<dyn Future<Output = Result<UpdateProvinceResponse, 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 deanery

Delete deanery by ID

Get deaneries

Find deanery by ID

Update an existing deanery

Add new diocese

Delete diocese by ID

Find diocese by ID

Get all dioceses

Update an existing diocese

Add new institute

Delete institute by ID

Find institute by ID

Get institutes

Update an existing institute

Add new parish

Delete parish by ID

Find parish by ID

Get all parishes

Update an existing parish

Add new province

Delete province by ID

Find province by ID

Get all provinces

Update an existing province

Provided methods

Implementors