pub struct MockCollectionsApi {
CollectionsApi_expectations: MockCollectionsApi_CollectionsApi,
}
Fields§
§CollectionsApi_expectations: MockCollectionsApi_CollectionsApi
Implementations§
Source§impl MockCollectionsApi
impl MockCollectionsApi
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 MockCollectionsApi
impl MockCollectionsApi
Sourcepub fn expect_delete(&mut self) -> &mut Expectation
pub fn expect_delete(&mut self) -> &mut Expectation
Create an Expectation
for mocking the delete
method
Sourcepub fn expect_delete_many(&mut self) -> &mut Expectation
pub fn expect_delete_many(&mut self) -> &mut Expectation
Create an Expectation
for mocking the delete_many
method
Sourcepub fn expect_get(&mut self) -> &mut Expectation
pub fn expect_get(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get
method
Sourcepub fn expect_get_all(&mut self) -> &mut Expectation
pub fn expect_get_all(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_all
method
Sourcepub fn expect_get_details(&mut self) -> &mut Expectation
pub fn expect_get_details(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_details
method
Sourcepub fn expect_get_many_with_details(&mut self) -> &mut Expectation
pub fn expect_get_many_with_details(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_many_with_details
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
Sourcepub fn expect_get_users(&mut self) -> &mut Expectation
pub fn expect_get_users(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_users
method
Sourcepub fn expect_post(&mut self) -> &mut Expectation
pub fn expect_post(&mut self) -> &mut Expectation
Create an Expectation
for mocking the post
method
Sourcepub fn expect_post_bulk_collection_access(&mut self) -> &mut Expectation
pub fn expect_post_bulk_collection_access(&mut self) -> &mut Expectation
Create an Expectation
for mocking the post_bulk_collection_access
method
Sourcepub fn expect_put(&mut self) -> &mut Expectation
pub fn expect_put(&mut self) -> &mut Expectation
Create an Expectation
for mocking the put
method
Trait Implementations§
Source§impl CollectionsApi for MockCollectionsApi
impl CollectionsApi for MockCollectionsApi
Source§fn delete<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn delete<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
DELETE /organizations/{orgId}/collections/{id}
Source§fn delete_many<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
collection_bulk_delete_request_model: Option<CollectionBulkDeleteRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteManyError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn delete_many<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
collection_bulk_delete_request_model: Option<CollectionBulkDeleteRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteManyError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
DELETE /organizations/{orgId}/collections
Source§fn get<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<CollectionResponseModel, Error<GetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<CollectionResponseModel, Error<GetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{orgId}/collections/{id}
Source§fn get_all<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<CollectionResponseModelListResponseModel, Error<GetAllError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_all<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<CollectionResponseModelListResponseModel, Error<GetAllError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{orgId}/collections
Source§fn get_details<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<CollectionAccessDetailsResponseModel, Error<GetDetailsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_details<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<CollectionAccessDetailsResponseModel, Error<GetDetailsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{orgId}/collections/{id}/details
Source§fn get_many_with_details<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<CollectionAccessDetailsResponseModelListResponseModel, Error<GetManyWithDetailsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_many_with_details<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<CollectionAccessDetailsResponseModelListResponseModel, Error<GetManyWithDetailsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{orgId}/collections/details
Source§fn get_user<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<CollectionDetailsResponseModelListResponseModel, Error<GetUserError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_user<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<CollectionDetailsResponseModelListResponseModel, Error<GetUserError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /collections
Source§fn get_users<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<SelectionReadOnlyResponseModel>, Error<GetUsersError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_users<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<SelectionReadOnlyResponseModel>, Error<GetUsersError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{orgId}/collections/{id}/users
Source§fn post<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
create_collection_request_model: Option<CreateCollectionRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<CollectionResponseModel, Error<PostError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn post<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
create_collection_request_model: Option<CreateCollectionRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<CollectionResponseModel, Error<PostError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organizations/{orgId}/collections
Source§fn post_bulk_collection_access<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
bulk_collection_access_request_model: Option<BulkCollectionAccessRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PostBulkCollectionAccessError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn post_bulk_collection_access<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
bulk_collection_access_request_model: Option<BulkCollectionAccessRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PostBulkCollectionAccessError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organizations/{orgId}/collections/bulk-access
Source§fn put<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
update_collection_request_model: Option<UpdateCollectionRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<CollectionResponseModel, Error<PutError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn put<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
update_collection_request_model: Option<UpdateCollectionRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<CollectionResponseModel, Error<PutError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /organizations/{orgId}/collections/{id}