pub struct MockEventsApi {
EventsApi_expectations: MockEventsApi_EventsApi,
}
Fields§
§EventsApi_expectations: MockEventsApi_EventsApi
Implementations§
Source§impl MockEventsApi
impl MockEventsApi
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 MockEventsApi
impl MockEventsApi
Sourcepub fn expect_get_cipher(&mut self) -> &mut Expectation
pub fn expect_get_cipher(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_cipher
method
Sourcepub fn expect_get_organization(&mut self) -> &mut Expectation
pub fn expect_get_organization(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_organization
method
Sourcepub fn expect_get_organization_user(&mut self) -> &mut Expectation
pub fn expect_get_organization_user(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_organization_user
method
Sourcepub fn expect_get_projects(&mut self) -> &mut Expectation
pub fn expect_get_projects(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_projects
method
Sourcepub fn expect_get_provider(&mut self) -> &mut Expectation
pub fn expect_get_provider(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_provider
method
Sourcepub fn expect_get_provider_user(&mut self) -> &mut Expectation
pub fn expect_get_provider_user(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_provider_user
method
Sourcepub fn expect_get_secrets(&mut self) -> &mut Expectation
pub fn expect_get_secrets(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_secrets
method
Sourcepub fn expect_get_user(&mut self) -> &mut Expectation
pub fn expect_get_user(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_user
method
Trait Implementations§
Source§impl Debug for MockEventsApi
impl Debug for MockEventsApi
Source§impl Default for MockEventsApi
impl Default for MockEventsApi
Source§impl EventsApi for MockEventsApi
impl EventsApi for MockEventsApi
Source§fn get_cipher<'a, 'life0, 'async_trait>(
&'life0 self,
id: &'a str,
start: Option<String>,
end: Option<String>,
continuation_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<EventResponseModelListResponseModel, Error<GetCipherError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_cipher<'a, 'life0, 'async_trait>(
&'life0 self,
id: &'a str,
start: Option<String>,
end: Option<String>,
continuation_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<EventResponseModelListResponseModel, Error<GetCipherError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /ciphers/{id}/events
Source§fn get_organization<'a, 'life0, 'async_trait>(
&'life0 self,
id: &'a str,
start: Option<String>,
end: Option<String>,
continuation_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<EventResponseModelListResponseModel, Error<GetOrganizationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_organization<'a, 'life0, 'async_trait>(
&'life0 self,
id: &'a str,
start: Option<String>,
end: Option<String>,
continuation_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<EventResponseModelListResponseModel, Error<GetOrganizationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{id}/events
Source§fn get_organization_user<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: &'a str,
id: &'a str,
start: Option<String>,
end: Option<String>,
continuation_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<EventResponseModelListResponseModel, Error<GetOrganizationUserError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_organization_user<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: &'a str,
id: &'a str,
start: Option<String>,
end: Option<String>,
continuation_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<EventResponseModelListResponseModel, Error<GetOrganizationUserError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{orgId}/users/{id}/events
Source§fn get_projects<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
org_id: Uuid,
start: Option<String>,
end: Option<String>,
continuation_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<EventResponseModelListResponseModel, Error<GetProjectsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_projects<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
org_id: Uuid,
start: Option<String>,
end: Option<String>,
continuation_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<EventResponseModelListResponseModel, Error<GetProjectsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organization/{orgId}/projects/{id}/events
Source§fn get_provider<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
start: Option<String>,
end: Option<String>,
continuation_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<EventResponseModelListResponseModel, Error<GetProviderError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_provider<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
start: Option<String>,
end: Option<String>,
continuation_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<EventResponseModelListResponseModel, Error<GetProviderError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /providers/{providerId}/events
Source§fn get_provider_user<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
id: Uuid,
start: Option<String>,
end: Option<String>,
continuation_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<EventResponseModelListResponseModel, Error<GetProviderUserError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_provider_user<'a, 'life0, 'async_trait>(
&'life0 self,
provider_id: Uuid,
id: Uuid,
start: Option<String>,
end: Option<String>,
continuation_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<EventResponseModelListResponseModel, Error<GetProviderUserError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /providers/{providerId}/users/{id}/events
Source§fn get_secrets<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
org_id: Uuid,
start: Option<String>,
end: Option<String>,
continuation_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<EventResponseModelListResponseModel, Error<GetSecretsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_secrets<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
org_id: Uuid,
start: Option<String>,
end: Option<String>,
continuation_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<EventResponseModelListResponseModel, Error<GetSecretsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organization/{orgId}/secrets/{id}/events
Source§fn get_user<'a, 'life0, 'async_trait>(
&'life0 self,
start: Option<String>,
end: Option<String>,
continuation_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<EventResponseModelListResponseModel, Error<GetUserError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_user<'a, 'life0, 'async_trait>(
&'life0 self,
start: Option<String>,
end: Option<String>,
continuation_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<EventResponseModelListResponseModel, Error<GetUserError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /events