pub struct MockNotificationsApi {
NotificationsApi_expectations: MockNotificationsApi_NotificationsApi,
}
Fields§
§NotificationsApi_expectations: MockNotificationsApi_NotificationsApi
Implementations§
Source§impl MockNotificationsApi
impl MockNotificationsApi
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 MockNotificationsApi
impl MockNotificationsApi
Sourcepub fn expect_list(&mut self) -> &mut Expectation
pub fn expect_list(&mut self) -> &mut Expectation
Create an Expectation
for mocking the list
method
Sourcepub fn expect_mark_as_deleted(&mut self) -> &mut Expectation
pub fn expect_mark_as_deleted(&mut self) -> &mut Expectation
Create an Expectation
for mocking the mark_as_deleted
method
Sourcepub fn expect_mark_as_read(&mut self) -> &mut Expectation
pub fn expect_mark_as_read(&mut self) -> &mut Expectation
Create an Expectation
for mocking the mark_as_read
method
Trait Implementations§
Source§impl Debug for MockNotificationsApi
impl Debug for MockNotificationsApi
Source§impl Default for MockNotificationsApi
impl Default for MockNotificationsApi
Source§impl NotificationsApi for MockNotificationsApi
impl NotificationsApi for MockNotificationsApi
Source§fn list<'a, 'life0, 'async_trait>(
&'life0 self,
read_status_filter: Option<bool>,
deleted_status_filter: Option<bool>,
continuation_token: Option<&'a str>,
page_size: Option<i32>,
) -> Pin<Box<dyn Future<Output = Result<NotificationResponseModelListResponseModel, Error<ListError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn list<'a, 'life0, 'async_trait>(
&'life0 self,
read_status_filter: Option<bool>,
deleted_status_filter: Option<bool>,
continuation_token: Option<&'a str>,
page_size: Option<i32>,
) -> Pin<Box<dyn Future<Output = Result<NotificationResponseModelListResponseModel, Error<ListError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /notifications
Auto Trait Implementations§
impl Freeze for MockNotificationsApi
impl RefUnwindSafe for MockNotificationsApi
impl Send for MockNotificationsApi
impl Sync for MockNotificationsApi
impl Unpin for MockNotificationsApi
impl UnwindSafe for MockNotificationsApi
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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