pub struct MockHabpanelApi { /* private fields */ }Available on crate feature
habpanel_api only.Implementations§
Source§impl MockHabpanelApi
impl MockHabpanelApi
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 MockHabpanelApi
impl MockHabpanelApi
Sourcepub fn expect_get_gallery_widget_list(&mut self) -> &mut Expectation
pub fn expect_get_gallery_widget_list(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_gallery_widget_list method
Sourcepub fn expect_get_gallery_widgets_item(&mut self) -> &mut Expectation
pub fn expect_get_gallery_widgets_item(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_gallery_widgets_item method
Trait Implementations§
Source§impl Debug for MockHabpanelApi
impl Debug for MockHabpanelApi
Source§impl Default for MockHabpanelApi
impl Default for MockHabpanelApi
Source§impl HabpanelApi for MockHabpanelApi
impl HabpanelApi for MockHabpanelApi
Source§fn get_gallery_widget_list<'gallery_name, 'life0, 'async_trait>(
&'life0 self,
gallery_name: &'gallery_name str,
) -> Pin<Box<dyn Future<Output = Result<Vec<GalleryWidgetsListItem>, Error<GetGalleryWidgetListError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'gallery_name: 'async_trait,
'life0: 'async_trait,
fn get_gallery_widget_list<'gallery_name, 'life0, 'async_trait>(
&'life0 self,
gallery_name: &'gallery_name str,
) -> Pin<Box<dyn Future<Output = Result<Vec<GalleryWidgetsListItem>, Error<GetGalleryWidgetListError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'gallery_name: 'async_trait,
'life0: 'async_trait,
GET /habpanel/gallery/{galleryName}/widgets
Source§fn get_gallery_widgets_item<'gallery_name, 'id, 'life0, 'async_trait>(
&'life0 self,
gallery_name: &'gallery_name str,
id: &'id str,
) -> Pin<Box<dyn Future<Output = Result<GalleryItem, Error<GetGalleryWidgetsItemError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'gallery_name: 'async_trait,
'id: 'async_trait,
'life0: 'async_trait,
fn get_gallery_widgets_item<'gallery_name, 'id, 'life0, 'async_trait>(
&'life0 self,
gallery_name: &'gallery_name str,
id: &'id str,
) -> Pin<Box<dyn Future<Output = Result<GalleryItem, Error<GetGalleryWidgetsItemError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'gallery_name: 'async_trait,
'id: 'async_trait,
'life0: 'async_trait,
GET /habpanel/gallery/{galleryName}/widgets/{id}
Auto Trait Implementations§
impl Freeze for MockHabpanelApi
impl RefUnwindSafe for MockHabpanelApi
impl Send for MockHabpanelApi
impl Sync for MockHabpanelApi
impl Unpin for MockHabpanelApi
impl UnwindSafe for MockHabpanelApi
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