pub struct MockPushApi {
PushApi_expectations: MockPushApi_PushApi,
}
Fields§
§PushApi_expectations: MockPushApi_PushApi
Implementations§
Source§impl MockPushApi
impl MockPushApi
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 MockPushApi
impl MockPushApi
Sourcepub fn expect_add_organization(&mut self) -> &mut Expectation
pub fn expect_add_organization(&mut self) -> &mut Expectation
Create an Expectation
for mocking the add_organization
method
Sourcepub fn expect_delete(&mut self) -> &mut Expectation
pub fn expect_delete(&mut self) -> &mut Expectation
Create an Expectation
for mocking the delete
method
Sourcepub fn expect_delete_organization(&mut self) -> &mut Expectation
pub fn expect_delete_organization(&mut self) -> &mut Expectation
Create an Expectation
for mocking the delete_organization
method
Sourcepub fn expect_register(&mut self) -> &mut Expectation
pub fn expect_register(&mut self) -> &mut Expectation
Create an Expectation
for mocking the register
method
Sourcepub fn expect_send(&mut self) -> &mut Expectation
pub fn expect_send(&mut self) -> &mut Expectation
Create an Expectation
for mocking the send
method
Trait Implementations§
Source§impl Debug for MockPushApi
impl Debug for MockPushApi
Source§impl Default for MockPushApi
impl Default for MockPushApi
Source§impl PushApi for MockPushApi
impl PushApi for MockPushApi
Source§fn add_organization<'a, 'life0, 'async_trait>(
&'life0 self,
push_update_request_model: Option<PushUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<AddOrganizationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn add_organization<'a, 'life0, 'async_trait>(
&'life0 self,
push_update_request_model: Option<PushUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<AddOrganizationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /push/add-organization
Source§fn delete<'a, 'life0, 'async_trait>(
&'life0 self,
push_device_request_model: Option<PushDeviceRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn delete<'a, 'life0, 'async_trait>(
&'life0 self,
push_device_request_model: Option<PushDeviceRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /push/delete
Source§fn delete_organization<'a, 'life0, 'async_trait>(
&'life0 self,
push_update_request_model: Option<PushUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteOrganizationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn delete_organization<'a, 'life0, 'async_trait>(
&'life0 self,
push_update_request_model: Option<PushUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteOrganizationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /push/delete-organization
Source§fn register<'a, 'life0, 'async_trait>(
&'life0 self,
push_registration_request_model: Option<PushRegistrationRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RegisterError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn register<'a, 'life0, 'async_trait>(
&'life0 self,
push_registration_request_model: Option<PushRegistrationRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RegisterError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /push/register
Source§fn send<'a, 'life0, 'async_trait>(
&'life0 self,
json_element_push_send_request_model: Option<JsonElementPushSendRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<SendError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn send<'a, 'life0, 'async_trait>(
&'life0 self,
json_element_push_send_request_model: Option<JsonElementPushSendRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<SendError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /push/send