pub struct MockSecretVersionsApi {
SecretVersionsApi_expectations: MockSecretVersionsApi_SecretVersionsApi,
}Fields§
§SecretVersionsApi_expectations: MockSecretVersionsApi_SecretVersionsApiImplementations§
Source§impl MockSecretVersionsApi
impl MockSecretVersionsApi
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 MockSecretVersionsApi
impl MockSecretVersionsApi
Sourcepub fn expect_bulk_delete(&mut self) -> &mut Expectation
pub fn expect_bulk_delete(&mut self) -> &mut Expectation
Create an Expectation for mocking the bulk_delete method
Sourcepub fn expect_get_by_id(&mut self) -> &mut Expectation
pub fn expect_get_by_id(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_by_id method
Sourcepub fn expect_get_many_by_ids(&mut self) -> &mut Expectation
pub fn expect_get_many_by_ids(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_many_by_ids method
Sourcepub fn expect_get_versions_by_secret_id(&mut self) -> &mut Expectation
pub fn expect_get_versions_by_secret_id(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_versions_by_secret_id method
Sourcepub fn expect_restore_version(&mut self) -> &mut Expectation
pub fn expect_restore_version(&mut self) -> &mut Expectation
Create an Expectation for mocking the restore_version method
Trait Implementations§
Source§impl Debug for MockSecretVersionsApi
impl Debug for MockSecretVersionsApi
Source§impl Default for MockSecretVersionsApi
impl Default for MockSecretVersionsApi
Source§impl SecretVersionsApi for MockSecretVersionsApi
impl SecretVersionsApi for MockSecretVersionsApi
Source§fn bulk_delete<'a, 'life0, 'async_trait>(
&'life0 self,
uuid_colon_colon_uuid: Option<Vec<Uuid>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn bulk_delete<'a, 'life0, 'async_trait>(
&'life0 self,
uuid_colon_colon_uuid: Option<Vec<Uuid>>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /secret-versions/delete
Source§fn get_by_id<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<SecretVersionResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_by_id<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<SecretVersionResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /secret-versions/{id}
Source§fn get_many_by_ids<'a, 'life0, 'async_trait>(
&'life0 self,
uuid_colon_colon_uuid: Option<Vec<Uuid>>,
) -> Pin<Box<dyn Future<Output = Result<SecretVersionResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_many_by_ids<'a, 'life0, 'async_trait>(
&'life0 self,
uuid_colon_colon_uuid: Option<Vec<Uuid>>,
) -> Pin<Box<dyn Future<Output = Result<SecretVersionResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /secret-versions/get-by-ids
Source§fn get_versions_by_secret_id<'a, 'life0, 'async_trait>(
&'life0 self,
secret_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<SecretVersionResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_versions_by_secret_id<'a, 'life0, 'async_trait>(
&'life0 self,
secret_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<SecretVersionResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /secrets/{secretId}/versions
Source§fn restore_version<'a, 'life0, 'async_trait>(
&'life0 self,
secret_id: Uuid,
restore_secret_version_request_model: Option<RestoreSecretVersionRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<SecretResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn restore_version<'a, 'life0, 'async_trait>(
&'life0 self,
secret_id: Uuid,
restore_secret_version_request_model: Option<RestoreSecretVersionRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<SecretResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /secrets/{secretId}/versions/restore
Auto Trait Implementations§
impl Freeze for MockSecretVersionsApi
impl RefUnwindSafe for MockSecretVersionsApi
impl Send for MockSecretVersionsApi
impl Sync for MockSecretVersionsApi
impl Unpin for MockSecretVersionsApi
impl UnsafeUnpin for MockSecretVersionsApi
impl UnwindSafe for MockSecretVersionsApi
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