pub struct MockFoldersApi {
FoldersApi_expectations: MockFoldersApi_FoldersApi,
}
Fields§
§FoldersApi_expectations: MockFoldersApi_FoldersApi
Implementations§
Source§impl MockFoldersApi
impl MockFoldersApi
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 MockFoldersApi
impl MockFoldersApi
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_all(&mut self) -> &mut Expectation
pub fn expect_delete_all(&mut self) -> &mut Expectation
Create an Expectation
for mocking the delete_all
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_post(&mut self) -> &mut Expectation
pub fn expect_post(&mut self) -> &mut Expectation
Create an Expectation
for mocking the post
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 Debug for MockFoldersApi
impl Debug for MockFoldersApi
Source§impl Default for MockFoldersApi
impl Default for MockFoldersApi
Source§impl FoldersApi for MockFoldersApi
impl FoldersApi for MockFoldersApi
Source§fn delete<'a, 'life0, 'async_trait>(
&'life0 self,
id: &'a str,
) -> 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,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
DELETE /folders/{id}
Source§fn delete_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteAllError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteAllError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
DELETE /folders/all
Source§fn get<'a, 'life0, 'async_trait>(
&'life0 self,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<FolderResponseModel, Error<GetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get<'a, 'life0, 'async_trait>(
&'life0 self,
id: &'a str,
) -> Pin<Box<dyn Future<Output = Result<FolderResponseModel, Error<GetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /folders/{id}
Source§fn get_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<FolderResponseModelListResponseModel, Error<GetAllError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<FolderResponseModelListResponseModel, Error<GetAllError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /folders
Source§fn post<'a, 'life0, 'async_trait>(
&'life0 self,
folder_request_model: Option<FolderRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<FolderResponseModel, Error<PostError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn post<'a, 'life0, 'async_trait>(
&'life0 self,
folder_request_model: Option<FolderRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<FolderResponseModel, Error<PostError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /folders
Source§fn put<'a, 'life0, 'async_trait>(
&'life0 self,
id: &'a str,
folder_request_model: Option<FolderRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<FolderResponseModel, Error<PutError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn put<'a, 'life0, 'async_trait>(
&'life0 self,
id: &'a str,
folder_request_model: Option<FolderRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<FolderResponseModel, Error<PutError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /folders/{id}