pub struct MockTransformationsApi { /* private fields */ }transformations_api only.Implementations§
Source§impl MockTransformationsApi
impl MockTransformationsApi
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 MockTransformationsApi
impl MockTransformationsApi
Sourcepub fn expect_delete_transformation(&mut self) -> &mut Expectation
pub fn expect_delete_transformation(&mut self) -> &mut Expectation
Create an Expectation for mocking the delete_transformation method
Sourcepub fn expect_get_transformation(&mut self) -> &mut Expectation
pub fn expect_get_transformation(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_transformation method
Sourcepub fn expect_get_transformation_services(&mut self) -> &mut Expectation
pub fn expect_get_transformation_services(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_transformation_services method
Sourcepub fn expect_get_transformations(&mut self) -> &mut Expectation
pub fn expect_get_transformations(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_transformations method
Sourcepub fn expect_put_transformation(&mut self) -> &mut Expectation
pub fn expect_put_transformation(&mut self) -> &mut Expectation
Create an Expectation for mocking the put_transformation method
Trait Implementations§
Source§impl Debug for MockTransformationsApi
impl Debug for MockTransformationsApi
Source§impl Default for MockTransformationsApi
impl Default for MockTransformationsApi
Source§impl TransformationsApi for MockTransformationsApi
impl TransformationsApi for MockTransformationsApi
Source§fn delete_transformation<'uid, 'life0, 'async_trait>(
&'life0 self,
uid: &'uid str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteTransformationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'uid: 'async_trait,
'life0: 'async_trait,
fn delete_transformation<'uid, 'life0, 'async_trait>(
&'life0 self,
uid: &'uid str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteTransformationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'uid: 'async_trait,
'life0: 'async_trait,
DELETE /transformations/{uid}
Source§fn get_transformation<'uid, 'life0, 'async_trait>(
&'life0 self,
uid: &'uid str,
) -> Pin<Box<dyn Future<Output = Result<Transformation, Error<GetTransformationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'uid: 'async_trait,
'life0: 'async_trait,
fn get_transformation<'uid, 'life0, 'async_trait>(
&'life0 self,
uid: &'uid str,
) -> Pin<Box<dyn Future<Output = Result<Transformation, Error<GetTransformationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'uid: 'async_trait,
'life0: 'async_trait,
GET /transformations/{uid}
Source§fn get_transformation_services<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error<GetTransformationServicesError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_transformation_services<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error<GetTransformationServicesError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /transformations/services
Source§fn get_transformations<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<TransformationDto>, Error<GetTransformationsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_transformations<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<TransformationDto>, Error<GetTransformationsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /transformations
Source§fn put_transformation<'uid, 'transformation_dto, 'life0, 'async_trait>(
&'life0 self,
uid: &'uid str,
transformation_dto: TransformationDto,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PutTransformationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'uid: 'async_trait,
'transformation_dto: 'async_trait,
'life0: 'async_trait,
fn put_transformation<'uid, 'transformation_dto, 'life0, 'async_trait>(
&'life0 self,
uid: &'uid str,
transformation_dto: TransformationDto,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PutTransformationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'uid: 'async_trait,
'transformation_dto: 'async_trait,
'life0: 'async_trait,
PUT /transformations/{uid}