pub trait ConnectionModule {
// Required methods
fn get_all<'life0, 'async_trait>(
&'life0 self,
options: ConnectionGetAllOptions,
) -> Pin<Box<dyn Future<Output = Result<Vec<Connection>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_by_id<'life0, 'async_trait>(
&'life0 self,
id: String,
) -> Pin<Box<dyn Future<Output = Result<Connection>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_invitation<'life0, 'async_trait>(
&'life0 self,
options: ConnectionCreateInvitationOptions,
) -> Pin<Box<dyn Future<Output = Result<Invitation>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn receive_invitation<'life0, 'async_trait>(
&'life0 self,
invitation: ConnectionReceiveInvitationOptions,
) -> Pin<Box<dyn Future<Output = Result<Connection>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Generic cloudagent connection module
Required Methods§
Sourcefn get_all<'life0, 'async_trait>(
&'life0 self,
options: ConnectionGetAllOptions,
) -> Pin<Box<dyn Future<Output = Result<Vec<Connection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_all<'life0, 'async_trait>(
&'life0 self,
options: ConnectionGetAllOptions,
) -> Pin<Box<dyn Future<Output = Result<Vec<Connection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Gets all the connections
Sourcefn get_by_id<'life0, 'async_trait>(
&'life0 self,
id: String,
) -> Pin<Box<dyn Future<Output = Result<Connection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_by_id<'life0, 'async_trait>(
&'life0 self,
id: String,
) -> Pin<Box<dyn Future<Output = Result<Connection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get a connection by id
Sourcefn create_invitation<'life0, 'async_trait>(
&'life0 self,
options: ConnectionCreateInvitationOptions,
) -> Pin<Box<dyn Future<Output = Result<Invitation>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_invitation<'life0, 'async_trait>(
&'life0 self,
options: ConnectionCreateInvitationOptions,
) -> Pin<Box<dyn Future<Output = Result<Invitation>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create an invitation
Sourcefn receive_invitation<'life0, 'async_trait>(
&'life0 self,
invitation: ConnectionReceiveInvitationOptions,
) -> Pin<Box<dyn Future<Output = Result<Connection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn receive_invitation<'life0, 'async_trait>(
&'life0 self,
invitation: ConnectionReceiveInvitationOptions,
) -> Pin<Box<dyn Future<Output = Result<Connection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Receive and accept a connection