pub trait PibClient: Clone {
type ClientError: Error;
Show 24 methods
// Required methods
fn get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Index, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn config_get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Config, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn user_get<'life0, 'async_trait>(
&'life0 self,
pagination: Pagination,
) -> Pin<Box<dyn Future<Output = Result<DataPage<User>, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn user_by_id_get<'life0, 'async_trait>(
&'life0 self,
user_id: UserId,
) -> Pin<Box<dyn Future<Output = Result<User, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn body_get<'life0, 'async_trait>(
&'life0 self,
pagination: Pagination,
) -> Pin<Box<dyn Future<Output = Result<DataPage<Body>, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn body_post<'life0, 'async_trait>(
&'life0 self,
new_body: NewBody,
) -> Pin<Box<dyn Future<Output = Result<Body, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn body_by_id_get<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
) -> Pin<Box<dyn Future<Output = Result<Body, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn body_by_id_permission_get<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
pagination: Pagination,
) -> Pin<Box<dyn Future<Output = Result<DataPage<Permission>, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn body_by_id_permission_post<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
new_permission: NewPermission,
) -> Pin<Box<dyn Future<Output = Result<Permission, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn body_by_id_permission_by_id_get<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
permission_id: BodyPermissionId,
) -> Pin<Box<dyn Future<Output = Result<Permission, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn body_by_id_meeting_get<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
pagination: Pagination,
) -> Pin<Box<dyn Future<Output = Result<DataPage<Meeting>, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn body_by_id_meeting_post<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
new_meeting: NewMeeting,
) -> Pin<Box<dyn Future<Output = Result<Meeting, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn body_by_id_meeting_by_id_get<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
meeting_id: MeetingId,
) -> Pin<Box<dyn Future<Output = Result<Meeting, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn body_by_id_meeting_by_id_agenda_item_get<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
meeting_id: MeetingId,
pagination: Pagination,
) -> Pin<Box<dyn Future<Output = Result<DataPage<AgendaItem>, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn body_by_id_meeting_by_id_agenda_item_post<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
meeting_id: MeetingId,
new_agenda_item: NewAgendaItem,
) -> Pin<Box<dyn Future<Output = Result<AgendaItem, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn body_by_id_meeting_by_id_agenda_item_by_id_get<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
meeting_id: MeetingId,
agenda_item_id: AgendaItemId,
) -> Pin<Box<dyn Future<Output = Result<AgendaItem, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn body_by_id_organization_get<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
pagination: Pagination,
) -> Pin<Box<dyn Future<Output = Result<DataPage<Organization>, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn body_by_id_organization_post<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
payload: NewOrganization,
) -> Pin<Box<dyn Future<Output = Result<Organization, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn body_by_id_organization_by_id_get<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
organization_id: OrganizationId,
) -> Pin<Box<dyn Future<Output = Result<Organization, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn body_by_id_person_get<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
pagination: Pagination,
) -> Pin<Box<dyn Future<Output = Result<DataPage<Person>, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn body_by_id_person_post<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
new_person: NewPerson,
) -> Pin<Box<dyn Future<Output = Result<Person, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn body_by_id_person_by_id_get<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
person_id: PersonId,
) -> Pin<Box<dyn Future<Output = Result<Person, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn me_profile_get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Profile, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn me_profile_patch<'life0, 'async_trait>(
&'life0 self,
update_profile: UpdateProfile,
) -> Pin<Box<dyn Future<Output = Result<Profile, Self::ClientError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Required Associated Types§
type ClientError: Error
Required Methods§
fn get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Index, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn config_get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Config, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn user_get<'life0, 'async_trait>(
&'life0 self,
pagination: Pagination,
) -> Pin<Box<dyn Future<Output = Result<DataPage<User>, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn user_by_id_get<'life0, 'async_trait>(
&'life0 self,
user_id: UserId,
) -> Pin<Box<dyn Future<Output = Result<User, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn body_get<'life0, 'async_trait>(
&'life0 self,
pagination: Pagination,
) -> Pin<Box<dyn Future<Output = Result<DataPage<Body>, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn body_post<'life0, 'async_trait>(
&'life0 self,
new_body: NewBody,
) -> Pin<Box<dyn Future<Output = Result<Body, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn body_by_id_get<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
) -> Pin<Box<dyn Future<Output = Result<Body, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn body_by_id_permission_get<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
pagination: Pagination,
) -> Pin<Box<dyn Future<Output = Result<DataPage<Permission>, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn body_by_id_permission_post<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
new_permission: NewPermission,
) -> Pin<Box<dyn Future<Output = Result<Permission, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn body_by_id_permission_by_id_get<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
permission_id: BodyPermissionId,
) -> Pin<Box<dyn Future<Output = Result<Permission, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn body_by_id_meeting_get<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
pagination: Pagination,
) -> Pin<Box<dyn Future<Output = Result<DataPage<Meeting>, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn body_by_id_meeting_post<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
new_meeting: NewMeeting,
) -> Pin<Box<dyn Future<Output = Result<Meeting, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn body_by_id_meeting_by_id_get<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
meeting_id: MeetingId,
) -> Pin<Box<dyn Future<Output = Result<Meeting, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn body_by_id_meeting_by_id_agenda_item_get<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
meeting_id: MeetingId,
pagination: Pagination,
) -> Pin<Box<dyn Future<Output = Result<DataPage<AgendaItem>, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn body_by_id_meeting_by_id_agenda_item_post<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
meeting_id: MeetingId,
new_agenda_item: NewAgendaItem,
) -> Pin<Box<dyn Future<Output = Result<AgendaItem, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn body_by_id_meeting_by_id_agenda_item_by_id_get<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
meeting_id: MeetingId,
agenda_item_id: AgendaItemId,
) -> Pin<Box<dyn Future<Output = Result<AgendaItem, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn body_by_id_organization_get<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
pagination: Pagination,
) -> Pin<Box<dyn Future<Output = Result<DataPage<Organization>, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn body_by_id_organization_post<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
payload: NewOrganization,
) -> Pin<Box<dyn Future<Output = Result<Organization, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn body_by_id_organization_by_id_get<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
organization_id: OrganizationId,
) -> Pin<Box<dyn Future<Output = Result<Organization, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn body_by_id_person_get<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
pagination: Pagination,
) -> Pin<Box<dyn Future<Output = Result<DataPage<Person>, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn body_by_id_person_post<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
new_person: NewPerson,
) -> Pin<Box<dyn Future<Output = Result<Person, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn body_by_id_person_by_id_get<'life0, 'async_trait>(
&'life0 self,
body_id: BodyId,
person_id: PersonId,
) -> Pin<Box<dyn Future<Output = Result<Person, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn me_profile_get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Profile, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn me_profile_patch<'life0, 'async_trait>(
&'life0 self,
update_profile: UpdateProfile,
) -> Pin<Box<dyn Future<Output = Result<Profile, Self::ClientError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".