pub struct MockEventsApi {
EventsApi_expectations: MockEventsApi_EventsApi,
}Fields§
§EventsApi_expectations: MockEventsApi_EventsApiImplementations§
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_service_accounts(&mut self) -> &mut Expectation
pub fn expect_get_service_accounts(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_service_accounts 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>> + 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>> + 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>> + 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>> + 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: Uuid,
id: Uuid,
start: Option<String>,
end: Option<String>,
continuation_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<EventResponseModelListResponseModel, Error>> + 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: Uuid,
id: Uuid,
start: Option<String>,
end: Option<String>,
continuation_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<EventResponseModelListResponseModel, Error>> + 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>> + 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>> + 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>> + 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>> + 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>> + 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>> + 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>> + 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>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organization/{orgId}/secrets/{id}/events
Source§fn get_service_accounts<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
start: Option<String>,
end: Option<String>,
continuation_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<EventResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_service_accounts<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
start: Option<String>,
end: Option<String>,
continuation_token: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<EventResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organization/{orgId}/service-account/{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>> + 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>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /events
Auto Trait Implementations§
impl Freeze for MockEventsApi
impl RefUnwindSafe for MockEventsApi
impl Send for MockEventsApi
impl Sync for MockEventsApi
impl Unpin for MockEventsApi
impl UnsafeUnpin for MockEventsApi
impl UnwindSafe for MockEventsApi
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