pub struct MockUiApi { /* private fields */ }ui_api only.Implementations§
Source§impl MockUiApi
impl MockUiApi
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 MockUiApi
impl MockUiApi
Sourcepub fn expect_add_ui_component_to_namespace(&mut self) -> &mut Expectation
pub fn expect_add_ui_component_to_namespace(&mut self) -> &mut Expectation
Create an Expectation for mocking the add_ui_component_to_namespace method
Sourcepub fn expect_get_registered_ui_components_in_namespace(
&mut self,
) -> &mut Expectation
pub fn expect_get_registered_ui_components_in_namespace( &mut self, ) -> &mut Expectation
Create an Expectation for mocking the get_registered_ui_components_in_namespace method
Sourcepub fn expect_get_ui_component_in_namespace(&mut self) -> &mut Expectation
pub fn expect_get_ui_component_in_namespace(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_ui_component_in_namespace method
Sourcepub fn expect_get_ui_tiles(&mut self) -> &mut Expectation
pub fn expect_get_ui_tiles(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_ui_tiles method
Sourcepub fn expect_remove_ui_component_from_namespace(&mut self) -> &mut Expectation
pub fn expect_remove_ui_component_from_namespace(&mut self) -> &mut Expectation
Create an Expectation for mocking the remove_ui_component_from_namespace method
Sourcepub fn expect_update_ui_component_in_namespace(&mut self) -> &mut Expectation
pub fn expect_update_ui_component_in_namespace(&mut self) -> &mut Expectation
Create an Expectation for mocking the update_ui_component_in_namespace method
Trait Implementations§
Source§impl UiApi for MockUiApi
impl UiApi for MockUiApi
Source§fn add_ui_component_to_namespace<'namespace, 'root_ui_component, 'life0, 'async_trait>(
&'life0 self,
namespace: &'namespace str,
root_ui_component: Option<RootUiComponent>,
) -> Pin<Box<dyn Future<Output = Result<RootUiComponent, Error<AddUiComponentToNamespaceError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'namespace: 'async_trait,
'root_ui_component: 'async_trait,
'life0: 'async_trait,
fn add_ui_component_to_namespace<'namespace, 'root_ui_component, 'life0, 'async_trait>(
&'life0 self,
namespace: &'namespace str,
root_ui_component: Option<RootUiComponent>,
) -> Pin<Box<dyn Future<Output = Result<RootUiComponent, Error<AddUiComponentToNamespaceError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'namespace: 'async_trait,
'root_ui_component: 'async_trait,
'life0: 'async_trait,
POST /ui/components/{namespace}
Source§fn get_registered_ui_components_in_namespace<'namespace, 'summary, 'life0, 'async_trait>(
&'life0 self,
namespace: &'namespace str,
summary: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<Vec<RootUiComponent>, Error<GetRegisteredUiComponentsInNamespaceError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'namespace: 'async_trait,
'summary: 'async_trait,
'life0: 'async_trait,
fn get_registered_ui_components_in_namespace<'namespace, 'summary, 'life0, 'async_trait>(
&'life0 self,
namespace: &'namespace str,
summary: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<Vec<RootUiComponent>, Error<GetRegisteredUiComponentsInNamespaceError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'namespace: 'async_trait,
'summary: 'async_trait,
'life0: 'async_trait,
GET /ui/components/{namespace}
Source§fn get_ui_component_in_namespace<'namespace, 'component_uid, 'life0, 'async_trait>(
&'life0 self,
namespace: &'namespace str,
component_uid: &'component_uid str,
) -> Pin<Box<dyn Future<Output = Result<RootUiComponent, Error<GetUiComponentInNamespaceError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'namespace: 'async_trait,
'component_uid: 'async_trait,
'life0: 'async_trait,
fn get_ui_component_in_namespace<'namespace, 'component_uid, 'life0, 'async_trait>(
&'life0 self,
namespace: &'namespace str,
component_uid: &'component_uid str,
) -> Pin<Box<dyn Future<Output = Result<RootUiComponent, Error<GetUiComponentInNamespaceError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'namespace: 'async_trait,
'component_uid: 'async_trait,
'life0: 'async_trait,
GET /ui/components/{namespace}/{componentUID}
Source§fn get_ui_tiles<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<TileDto>, Error<GetUiTilesError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_ui_tiles<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<TileDto>, Error<GetUiTilesError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
GET /ui/tiles
Source§fn remove_ui_component_from_namespace<'namespace, 'component_uid, 'life0, 'async_trait>(
&'life0 self,
namespace: &'namespace str,
component_uid: &'component_uid str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveUiComponentFromNamespaceError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'namespace: 'async_trait,
'component_uid: 'async_trait,
'life0: 'async_trait,
fn remove_ui_component_from_namespace<'namespace, 'component_uid, 'life0, 'async_trait>(
&'life0 self,
namespace: &'namespace str,
component_uid: &'component_uid str,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RemoveUiComponentFromNamespaceError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'namespace: 'async_trait,
'component_uid: 'async_trait,
'life0: 'async_trait,
DELETE /ui/components/{namespace}/{componentUID}
Source§fn update_ui_component_in_namespace<'namespace, 'component_uid, 'root_ui_component, 'life0, 'async_trait>(
&'life0 self,
namespace: &'namespace str,
component_uid: &'component_uid str,
root_ui_component: Option<RootUiComponent>,
) -> Pin<Box<dyn Future<Output = Result<RootUiComponent, Error<UpdateUiComponentInNamespaceError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'namespace: 'async_trait,
'component_uid: 'async_trait,
'root_ui_component: 'async_trait,
'life0: 'async_trait,
fn update_ui_component_in_namespace<'namespace, 'component_uid, 'root_ui_component, 'life0, 'async_trait>(
&'life0 self,
namespace: &'namespace str,
component_uid: &'component_uid str,
root_ui_component: Option<RootUiComponent>,
) -> Pin<Box<dyn Future<Output = Result<RootUiComponent, Error<UpdateUiComponentInNamespaceError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'namespace: 'async_trait,
'component_uid: 'async_trait,
'root_ui_component: 'async_trait,
'life0: 'async_trait,
PUT /ui/components/{namespace}/{componentUID}