pub struct MockTaxApi {
TaxApi_expectations: MockTaxApi_TaxApi,
}
Fields§
§TaxApi_expectations: MockTaxApi_TaxApi
Implementations§
Source§impl MockTaxApi
impl MockTaxApi
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 MockTaxApi
impl MockTaxApi
Sourcepub fn expect_preview_tax_amount_for_organization_trial(
&mut self,
) -> &mut Expectation
pub fn expect_preview_tax_amount_for_organization_trial( &mut self, ) -> &mut Expectation
Create an Expectation
for mocking the preview_tax_amount_for_organization_trial
method
Trait Implementations§
Source§impl Debug for MockTaxApi
impl Debug for MockTaxApi
Source§impl Default for MockTaxApi
impl Default for MockTaxApi
Source§impl TaxApi for MockTaxApi
impl TaxApi for MockTaxApi
Source§fn preview_tax_amount_for_organization_trial<'a, 'life0, 'async_trait>(
&'life0 self,
preview_tax_amount_for_organization_trial_request_body: Option<PreviewTaxAmountForOrganizationTrialRequestBody>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PreviewTaxAmountForOrganizationTrialError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn preview_tax_amount_for_organization_trial<'a, 'life0, 'async_trait>(
&'life0 self,
preview_tax_amount_for_organization_trial_request_body: Option<PreviewTaxAmountForOrganizationTrialRequestBody>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<PreviewTaxAmountForOrganizationTrialError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /tax/preview-amount/organization-trial
Auto Trait Implementations§
impl Freeze for MockTaxApi
impl RefUnwindSafe for MockTaxApi
impl Send for MockTaxApi
impl Sync for MockTaxApi
impl Unpin for MockTaxApi
impl UnwindSafe for MockTaxApi
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