pub struct MockOrganizationConnectionsApi {
OrganizationConnectionsApi_expectations: MockOrganizationConnectionsApi_OrganizationConnectionsApi,
}
Fields§
§OrganizationConnectionsApi_expectations: MockOrganizationConnectionsApi_OrganizationConnectionsApi
Implementations§
Source§impl MockOrganizationConnectionsApi
impl MockOrganizationConnectionsApi
Sourcepub fn checkpoint(&mut self)
pub fn checkpoint(&mut self)
Validate that all current expectations for all methods have been satisfied, and discard them.
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new mock object with no expectations.
This method will not be generated if the real struct
already has a new
method. However, it will be
generated if the struct implements a trait with a new
method. The trait’s new
method can still be called
like <MockX as TraitY>::new
Source§impl MockOrganizationConnectionsApi
impl MockOrganizationConnectionsApi
Sourcepub fn expect_connections_enabled(&mut self) -> &mut Expectation
pub fn expect_connections_enabled(&mut self) -> &mut Expectation
Create an Expectation
for mocking the connections_enabled
method
Sourcepub fn expect_create_connection(&mut self) -> &mut Expectation
pub fn expect_create_connection(&mut self) -> &mut Expectation
Create an Expectation
for mocking the create_connection
method
Sourcepub fn expect_delete_connection(&mut self) -> &mut Expectation
pub fn expect_delete_connection(&mut self) -> &mut Expectation
Create an Expectation
for mocking the delete_connection
method
Sourcepub fn expect_get_connection(&mut self) -> &mut Expectation
pub fn expect_get_connection(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_connection
method
Sourcepub fn expect_update_connection(&mut self) -> &mut Expectation
pub fn expect_update_connection(&mut self) -> &mut Expectation
Create an Expectation
for mocking the update_connection
method
Trait Implementations§
Source§impl OrganizationConnectionsApi for MockOrganizationConnectionsApi
impl OrganizationConnectionsApi for MockOrganizationConnectionsApi
Source§fn connections_enabled<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<bool, Error<ConnectionsEnabledError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connections_enabled<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<bool, Error<ConnectionsEnabledError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /organizations/connections/enabled
Source§fn create_connection<'a, 'life0, 'async_trait>(
&'life0 self,
organization_connection_request_model: Option<OrganizationConnectionRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<OrganizationConnectionResponseModel, Error<CreateConnectionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn create_connection<'a, 'life0, 'async_trait>(
&'life0 self,
organization_connection_request_model: Option<OrganizationConnectionRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<OrganizationConnectionResponseModel, Error<CreateConnectionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organizations/connections
Source§fn delete_connection<'a, 'life0, 'async_trait>(
&'life0 self,
organization_connection_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteConnectionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn delete_connection<'a, 'life0, 'async_trait>(
&'life0 self,
organization_connection_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteConnectionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
DELETE /organizations/connections/{organizationConnectionId}
Source§fn get_connection<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
type: OrganizationConnectionType,
) -> Pin<Box<dyn Future<Output = Result<OrganizationConnectionResponseModel, Error<GetConnectionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_connection<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
type: OrganizationConnectionType,
) -> Pin<Box<dyn Future<Output = Result<OrganizationConnectionResponseModel, Error<GetConnectionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/connections/{organizationId}/{type}
Source§fn update_connection<'a, 'life0, 'async_trait>(
&'life0 self,
organization_connection_id: Uuid,
organization_connection_request_model: Option<OrganizationConnectionRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<OrganizationConnectionResponseModel, Error<UpdateConnectionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn update_connection<'a, 'life0, 'async_trait>(
&'life0 self,
organization_connection_id: Uuid,
organization_connection_request_model: Option<OrganizationConnectionRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<OrganizationConnectionResponseModel, Error<UpdateConnectionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /organizations/connections/{organizationConnectionId}