pub struct MockDiscoveryApi { /* private fields */ }Available on crate feature
discovery_api only.Implementations§
Source§impl MockDiscoveryApi
impl MockDiscoveryApi
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 MockDiscoveryApi
impl MockDiscoveryApi
Sourcepub fn expect_get_bindings_with_discovery_support(&mut self) -> &mut Expectation
pub fn expect_get_bindings_with_discovery_support(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_bindings_with_discovery_support method
Sourcepub fn expect_get_discovery_services_info(&mut self) -> &mut Expectation
pub fn expect_get_discovery_services_info(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_discovery_services_info method
Sourcepub fn expect_scan(&mut self) -> &mut Expectation
pub fn expect_scan(&mut self) -> &mut Expectation
Create an Expectation for mocking the scan method
Trait Implementations§
Source§impl Debug for MockDiscoveryApi
impl Debug for MockDiscoveryApi
Source§impl Default for MockDiscoveryApi
impl Default for MockDiscoveryApi
Source§impl DiscoveryApi for MockDiscoveryApi
impl DiscoveryApi for MockDiscoveryApi
Source§fn get_bindings_with_discovery_support<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error<GetBindingsWithDiscoverySupportError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_bindings_with_discovery_support<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error<GetBindingsWithDiscoverySupportError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /discovery
Source§fn get_discovery_services_info<'binding_id, 'accept_language, 'life0, 'async_trait>(
&'life0 self,
binding_id: &'binding_id str,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryInfoDto, Error<GetDiscoveryServicesInfoError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'binding_id: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
fn get_discovery_services_info<'binding_id, 'accept_language, 'life0, 'async_trait>(
&'life0 self,
binding_id: &'binding_id str,
accept_language: Option<&'accept_language str>,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryInfoDto, Error<GetDiscoveryServicesInfoError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'binding_id: 'async_trait,
'accept_language: 'async_trait,
'life0: 'async_trait,
GET /discovery/bindings/{bindingId}/info
Source§fn scan<'binding_id, 'input, 'life0, 'async_trait>(
&'life0 self,
binding_id: &'binding_id str,
input: Option<&'input str>,
) -> Pin<Box<dyn Future<Output = Result<i32, Error<ScanError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'binding_id: 'async_trait,
'input: 'async_trait,
'life0: 'async_trait,
fn scan<'binding_id, 'input, 'life0, 'async_trait>(
&'life0 self,
binding_id: &'binding_id str,
input: Option<&'input str>,
) -> Pin<Box<dyn Future<Output = Result<i32, Error<ScanError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'binding_id: 'async_trait,
'input: 'async_trait,
'life0: 'async_trait,
POST /discovery/bindings/{bindingId}/scan
Auto Trait Implementations§
impl Freeze for MockDiscoveryApi
impl RefUnwindSafe for MockDiscoveryApi
impl Send for MockDiscoveryApi
impl Sync for MockDiscoveryApi
impl Unpin for MockDiscoveryApi
impl UnwindSafe for MockDiscoveryApi
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