pub struct MockConfigDescriptionsApi { /* private fields */ }Available on crate feature
config_descriptions_api only.Implementations§
Source§impl MockConfigDescriptionsApi
impl MockConfigDescriptionsApi
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 MockConfigDescriptionsApi
impl MockConfigDescriptionsApi
Sourcepub fn expect_get_config_description_by_uri(&mut self) -> &mut Expectation
pub fn expect_get_config_description_by_uri(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_config_description_by_uri method
Sourcepub fn expect_get_config_descriptions(&mut self) -> &mut Expectation
pub fn expect_get_config_descriptions(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_config_descriptions method
Trait Implementations§
Source§impl ConfigDescriptionsApi for MockConfigDescriptionsApi
impl ConfigDescriptionsApi for MockConfigDescriptionsApi
Source§fn get_config_description_by_uri<'uri, 'accept_language, 'life0, 'async_trait>(
&'life0 self,
uri: &'uri str,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<ConfigDescriptionDto, Error<GetConfigDescriptionByUriError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'uri: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
fn get_config_description_by_uri<'uri, 'accept_language, 'life0, 'async_trait>(
&'life0 self,
uri: &'uri str,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<ConfigDescriptionDto, Error<GetConfigDescriptionByUriError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'uri: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
GET /config-descriptions/{uri}
Source§fn get_config_descriptions<'accept_language, 'scheme, 'life0, 'async_trait>(
&'life0 self,
accept_language: Option<&'accept_language str>,
scheme: Option<&'scheme str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<ConfigDescriptionDto>, Error<GetConfigDescriptionsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'accept_language: 'async_trait,
'scheme: 'async_trait,
'life0: 'async_trait,
fn get_config_descriptions<'accept_language, 'scheme, 'life0, 'async_trait>(
&'life0 self,
accept_language: Option<&'accept_language str>,
scheme: Option<&'scheme str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<ConfigDescriptionDto>, Error<GetConfigDescriptionsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'accept_language: 'async_trait,
'scheme: 'async_trait,
'life0: 'async_trait,
GET /config-descriptions
Source§impl Debug for MockConfigDescriptionsApi
impl Debug for MockConfigDescriptionsApi
Auto Trait Implementations§
impl Freeze for MockConfigDescriptionsApi
impl RefUnwindSafe for MockConfigDescriptionsApi
impl Send for MockConfigDescriptionsApi
impl Sync for MockConfigDescriptionsApi
impl Unpin for MockConfigDescriptionsApi
impl UnwindSafe for MockConfigDescriptionsApi
Blanket Implementations§
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
Mutably borrows from an owned value. Read more