pub struct MockOrganizationConnectionsApi {
OrganizationConnectionsApi_expectations: MockOrganizationConnectionsApi_OrganizationConnectionsApi,
}Fields§
§OrganizationConnectionsApi_expectations: MockOrganizationConnectionsApi_OrganizationConnectionsApiImplementations§
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>> + 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>> + 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>> + 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>> + 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>> + 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>> + 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>> + 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>> + 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>> + 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>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /organizations/connections/{organizationConnectionId}
Auto Trait Implementations§
impl Freeze for MockOrganizationConnectionsApi
impl RefUnwindSafe for MockOrganizationConnectionsApi
impl Send for MockOrganizationConnectionsApi
impl Sync for MockOrganizationConnectionsApi
impl Unpin for MockOrganizationConnectionsApi
impl UnsafeUnpin for MockOrganizationConnectionsApi
impl UnwindSafe for MockOrganizationConnectionsApi
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read more