pub struct MockSelfHostedAccountBillingVNextApi {
SelfHostedAccountBillingVNextApi_expectations: MockSelfHostedAccountBillingVNextApi_SelfHostedAccountBillingVNextApi,
}Fields§
§SelfHostedAccountBillingVNextApi_expectations: MockSelfHostedAccountBillingVNextApi_SelfHostedAccountBillingVNextApiImplementations§
Source§impl MockSelfHostedAccountBillingVNextApi
impl MockSelfHostedAccountBillingVNextApi
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 MockSelfHostedAccountBillingVNextApi
impl MockSelfHostedAccountBillingVNextApi
Sourcepub fn expect_upload_license(&mut self) -> &mut Expectation
pub fn expect_upload_license(&mut self) -> &mut Expectation
Create an Expectation for mocking the upload_license method
Trait Implementations§
Source§impl SelfHostedAccountBillingVNextApi for MockSelfHostedAccountBillingVNextApi
impl SelfHostedAccountBillingVNextApi for MockSelfHostedAccountBillingVNextApi
Source§fn upload_license<'a, 'life0, 'async_trait>(
&'life0 self,
email: &'a str,
security_stamp: &'a str,
api_key: &'a str,
license: PathBuf,
id: Option<Uuid>,
name: Option<&'a str>,
email_verified: Option<bool>,
master_password: Option<&'a str>,
master_password_hint: Option<&'a str>,
culture: Option<&'a str>,
two_factor_providers: Option<&'a str>,
two_factor_recovery_code: Option<&'a str>,
equivalent_domains: Option<&'a str>,
excluded_global_equivalent_domains: Option<&'a str>,
account_revision_date: Option<String>,
key: Option<&'a str>,
public_key: Option<&'a str>,
private_key: Option<&'a str>,
signed_public_key: Option<&'a str>,
security_version: Option<i32>,
security_state: Option<&'a str>,
premium: Option<bool>,
premium_expiration_date: Option<String>,
renewal_reminder_date: Option<String>,
storage: Option<i64>,
max_storage_gb: Option<i32>,
gateway: Option<GatewayType>,
gateway_customer_id: Option<&'a str>,
gateway_subscription_id: Option<&'a str>,
reference_data: Option<&'a str>,
license_key: Option<&'a str>,
kdf: Option<KdfType>,
kdf_iterations: Option<i32>,
kdf_memory: Option<i32>,
kdf_parallelism: Option<i32>,
creation_date: Option<String>,
revision_date: Option<String>,
force_password_reset: Option<bool>,
uses_key_connector: Option<bool>,
failed_login_count: Option<i32>,
last_failed_login_date: Option<String>,
avatar_color: Option<&'a str>,
last_password_change_date: Option<String>,
last_kdf_change_date: Option<String>,
last_key_rotation_date: Option<String>,
last_email_change_date: Option<String>,
verify_devices: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UploadLicenseError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn upload_license<'a, 'life0, 'async_trait>(
&'life0 self,
email: &'a str,
security_stamp: &'a str,
api_key: &'a str,
license: PathBuf,
id: Option<Uuid>,
name: Option<&'a str>,
email_verified: Option<bool>,
master_password: Option<&'a str>,
master_password_hint: Option<&'a str>,
culture: Option<&'a str>,
two_factor_providers: Option<&'a str>,
two_factor_recovery_code: Option<&'a str>,
equivalent_domains: Option<&'a str>,
excluded_global_equivalent_domains: Option<&'a str>,
account_revision_date: Option<String>,
key: Option<&'a str>,
public_key: Option<&'a str>,
private_key: Option<&'a str>,
signed_public_key: Option<&'a str>,
security_version: Option<i32>,
security_state: Option<&'a str>,
premium: Option<bool>,
premium_expiration_date: Option<String>,
renewal_reminder_date: Option<String>,
storage: Option<i64>,
max_storage_gb: Option<i32>,
gateway: Option<GatewayType>,
gateway_customer_id: Option<&'a str>,
gateway_subscription_id: Option<&'a str>,
reference_data: Option<&'a str>,
license_key: Option<&'a str>,
kdf: Option<KdfType>,
kdf_iterations: Option<i32>,
kdf_memory: Option<i32>,
kdf_parallelism: Option<i32>,
creation_date: Option<String>,
revision_date: Option<String>,
force_password_reset: Option<bool>,
uses_key_connector: Option<bool>,
failed_login_count: Option<i32>,
last_failed_login_date: Option<String>,
avatar_color: Option<&'a str>,
last_password_change_date: Option<String>,
last_kdf_change_date: Option<String>,
last_key_rotation_date: Option<String>,
last_email_change_date: Option<String>,
verify_devices: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<UploadLicenseError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /account/billing/vnext/self-host/license
Auto Trait Implementations§
impl Freeze for MockSelfHostedAccountBillingVNextApi
impl RefUnwindSafe for MockSelfHostedAccountBillingVNextApi
impl Send for MockSelfHostedAccountBillingVNextApi
impl Sync for MockSelfHostedAccountBillingVNextApi
impl Unpin for MockSelfHostedAccountBillingVNextApi
impl UnwindSafe for MockSelfHostedAccountBillingVNextApi
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