pub struct MockStripeApi {
StripeApi_expectations: MockStripeApi_StripeApi,
}
Fields§
§StripeApi_expectations: MockStripeApi_StripeApi
Implementations§
Source§impl MockStripeApi
impl MockStripeApi
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 MockStripeApi
impl MockStripeApi
Sourcepub fn expect_create_setup_intent_for_bank_account(
&mut self,
) -> &mut Expectation
pub fn expect_create_setup_intent_for_bank_account( &mut self, ) -> &mut Expectation
Create an Expectation
for mocking the create_setup_intent_for_bank_account
method
Sourcepub fn expect_create_setup_intent_for_card(&mut self) -> &mut Expectation
pub fn expect_create_setup_intent_for_card(&mut self) -> &mut Expectation
Create an Expectation
for mocking the create_setup_intent_for_card
method
Sourcepub fn expect_is_country_supported(&mut self) -> &mut Expectation
pub fn expect_is_country_supported(&mut self) -> &mut Expectation
Create an Expectation
for mocking the is_country_supported
method
Trait Implementations§
Source§impl Debug for MockStripeApi
impl Debug for MockStripeApi
Source§impl Default for MockStripeApi
impl Default for MockStripeApi
Source§impl StripeApi for MockStripeApi
impl StripeApi for MockStripeApi
Source§fn create_setup_intent_for_bank_account<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error<CreateSetupIntentForBankAccountError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_setup_intent_for_bank_account<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error<CreateSetupIntentForBankAccountError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
POST /setup-intent/bank-account
Auto Trait Implementations§
impl Freeze for MockStripeApi
impl RefUnwindSafe for MockStripeApi
impl Send for MockStripeApi
impl Sync for MockStripeApi
impl Unpin for MockStripeApi
impl UnwindSafe for MockStripeApi
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