pub struct Expectation {
common: Common,
rfunc: Mutex<Rfunc>,
}
Expand description
Expectation type for methods that return a 'static
type.
This is the type returned by the expect_*
methods.
Fields§
§common: Common
§rfunc: Mutex<Rfunc>
Implementations§
Source§impl Expectation
impl Expectation
Sourcepub fn return_const<MockallOutput>(
&mut self,
__mockall_c: MockallOutput,
) -> &mut Self
pub fn return_const<MockallOutput>( &mut self, __mockall_c: MockallOutput, ) -> &mut Self
Return a constant value from the Expectation
The output type must be Clone
. The compiler can’t always
infer the proper type to use with this method; you will
usually need to specify it explicitly. i.e.
return_const(42i32)
instead of return_const(42)
.
Sourcepub fn return_const_st<MockallOutput>(
&mut self,
__mockall_c: MockallOutput,
) -> &mut Self
pub fn return_const_st<MockallOutput>( &mut self, __mockall_c: MockallOutput, ) -> &mut Self
Single-threaded version of
return_const
. This is useful for
return types that are not Send
.
The output type must be Clone
. The compiler can’t always
infer the proper type to use with this method; you will
usually need to specify it explicitly. i.e.
return_const(42i32)
instead of return_const(42)
.
It is a runtime error to call the mock method from a different thread than the one that originally called this method.
Sourcepub fn return_once<MockallF>(&mut self, __mockall_f: MockallF) -> &mut Selfwhere
MockallF: for<'a> FnOnce(&'a str, Option<Uuid>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<PlanType>, Option<i32>, Option<i32>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<i64>, Option<i32>, Option<GatewayType>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<bool>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<String>, Option<String>, Option<String>, Option<i32>, Option<String>, Option<OrganizationStatusType>, Option<bool>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<RestartSubscriptionRequest>) -> Result<(), Error<RestartSubscriptionError>> + Send + 'static,
pub fn return_once<MockallF>(&mut self, __mockall_f: MockallF) -> &mut Selfwhere
MockallF: for<'a> FnOnce(&'a str, Option<Uuid>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<PlanType>, Option<i32>, Option<i32>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<i64>, Option<i32>, Option<GatewayType>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<bool>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<String>, Option<String>, Option<String>, Option<i32>, Option<String>, Option<OrganizationStatusType>, Option<bool>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<RestartSubscriptionRequest>) -> Result<(), Error<RestartSubscriptionError>> + Send + 'static,
Supply an FnOnce
closure that will provide the return
value for this Expectation. This is useful for return types
that aren’t Clone
. It will be an error to call this
method multiple times.
Sourcepub fn return_once_st<MockallF>(&mut self, __mockall_f: MockallF) -> &mut Selfwhere
MockallF: for<'a> FnOnce(&'a str, Option<Uuid>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<PlanType>, Option<i32>, Option<i32>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<i64>, Option<i32>, Option<GatewayType>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<bool>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<String>, Option<String>, Option<String>, Option<i32>, Option<String>, Option<OrganizationStatusType>, Option<bool>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<RestartSubscriptionRequest>) -> Result<(), Error<RestartSubscriptionError>> + 'static,
pub fn return_once_st<MockallF>(&mut self, __mockall_f: MockallF) -> &mut Selfwhere
MockallF: for<'a> FnOnce(&'a str, Option<Uuid>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<PlanType>, Option<i32>, Option<i32>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<i64>, Option<i32>, Option<GatewayType>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<bool>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<String>, Option<String>, Option<String>, Option<i32>, Option<String>, Option<OrganizationStatusType>, Option<bool>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<RestartSubscriptionRequest>) -> Result<(), Error<RestartSubscriptionError>> + 'static,
Single-threaded version of
return_once
. This is useful for
return types that are neither Send
nor Clone
.
It is a runtime error to call the mock method from a different thread than the one that originally called this method. It is also a runtime error to call the method more than once.
Sourcepub fn returning<MockallF>(&mut self, __mockall_f: MockallF) -> &mut Selfwhere
MockallF: for<'a> FnMut(&'a str, Option<Uuid>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<PlanType>, Option<i32>, Option<i32>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<i64>, Option<i32>, Option<GatewayType>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<bool>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<String>, Option<String>, Option<String>, Option<i32>, Option<String>, Option<OrganizationStatusType>, Option<bool>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<RestartSubscriptionRequest>) -> Result<(), Error<RestartSubscriptionError>> + Send + 'static,
pub fn returning<MockallF>(&mut self, __mockall_f: MockallF) -> &mut Selfwhere
MockallF: for<'a> FnMut(&'a str, Option<Uuid>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<PlanType>, Option<i32>, Option<i32>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<i64>, Option<i32>, Option<GatewayType>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<bool>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<String>, Option<String>, Option<String>, Option<i32>, Option<String>, Option<OrganizationStatusType>, Option<bool>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<RestartSubscriptionRequest>) -> Result<(), Error<RestartSubscriptionError>> + Send + 'static,
Supply a closure that will provide the return value for this
Expectation
. The method’s arguments are passed to the
closure by value.
Sourcepub fn returning_st<MockallF>(&mut self, __mockall_f: MockallF) -> &mut Selfwhere
MockallF: for<'a> FnMut(&'a str, Option<Uuid>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<PlanType>, Option<i32>, Option<i32>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<i64>, Option<i32>, Option<GatewayType>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<bool>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<String>, Option<String>, Option<String>, Option<i32>, Option<String>, Option<OrganizationStatusType>, Option<bool>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<RestartSubscriptionRequest>) -> Result<(), Error<RestartSubscriptionError>> + 'static,
pub fn returning_st<MockallF>(&mut self, __mockall_f: MockallF) -> &mut Selfwhere
MockallF: for<'a> FnMut(&'a str, Option<Uuid>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<PlanType>, Option<i32>, Option<i32>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<i64>, Option<i32>, Option<GatewayType>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<bool>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<&'a str>, Option<String>, Option<String>, Option<String>, Option<i32>, Option<String>, Option<OrganizationStatusType>, Option<bool>, Option<i32>, Option<i32>, Option<i32>, Option<i32>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<bool>, Option<RestartSubscriptionRequest>) -> Result<(), Error<RestartSubscriptionError>> + 'static,
Single-threaded version of returning
.
Can be used when the argument or return type isn’t Send
.
It is a runtime error to call the mock method from a different thread than the one that originally called this method.
Sourcepub fn in_sequence(&mut self, __mockall_seq: &mut Sequence) -> &mut Self
pub fn in_sequence(&mut self, __mockall_seq: &mut Sequence) -> &mut Self
Add this expectation to a
Sequence
.
fn is_done(&self) -> bool
Sourcefn matches<'a>(
&self,
organization_id: &str,
id: &Option<Uuid>,
identifier: &Option<&'a str>,
name: &Option<&'a str>,
business_name: &Option<&'a str>,
business_address1: &Option<&'a str>,
business_address2: &Option<&'a str>,
business_address3: &Option<&'a str>,
business_country: &Option<&'a str>,
business_tax_number: &Option<&'a str>,
billing_email: &Option<&'a str>,
plan: &Option<&'a str>,
plan_type: &Option<PlanType>,
seats: &Option<i32>,
max_collections: &Option<i32>,
use_policies: &Option<bool>,
use_sso: &Option<bool>,
use_key_connector: &Option<bool>,
use_scim: &Option<bool>,
use_groups: &Option<bool>,
use_directory: &Option<bool>,
use_events: &Option<bool>,
use_totp: &Option<bool>,
use2fa: &Option<bool>,
use_api: &Option<bool>,
use_reset_password: &Option<bool>,
use_secrets_manager: &Option<bool>,
self_host: &Option<bool>,
users_get_premium: &Option<bool>,
use_custom_permissions: &Option<bool>,
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>,
enabled: &Option<bool>,
license_key: &Option<&'a str>,
public_key: &Option<&'a str>,
private_key: &Option<&'a str>,
two_factor_providers: &Option<&'a str>,
expiration_date: &Option<String>,
creation_date: &Option<String>,
revision_date: &Option<String>,
max_autoscale_seats: &Option<i32>,
owners_notified_of_autoscaling: &Option<String>,
status: &Option<OrganizationStatusType>,
use_password_manager: &Option<bool>,
sm_seats: &Option<i32>,
sm_service_accounts: &Option<i32>,
max_autoscale_sm_seats: &Option<i32>,
max_autoscale_sm_service_accounts: &Option<i32>,
limit_collection_creation: &Option<bool>,
limit_collection_deletion: &Option<bool>,
allow_admin_access_to_all_collection_items: &Option<bool>,
limit_item_deletion: &Option<bool>,
use_risk_insights: &Option<bool>,
use_organization_domains: &Option<bool>,
use_admin_sponsored_families: &Option<bool>,
sync_seats: &Option<bool>,
restart_subscription_request: &Option<RestartSubscriptionRequest>,
) -> bool
fn matches<'a>( &self, organization_id: &str, id: &Option<Uuid>, identifier: &Option<&'a str>, name: &Option<&'a str>, business_name: &Option<&'a str>, business_address1: &Option<&'a str>, business_address2: &Option<&'a str>, business_address3: &Option<&'a str>, business_country: &Option<&'a str>, business_tax_number: &Option<&'a str>, billing_email: &Option<&'a str>, plan: &Option<&'a str>, plan_type: &Option<PlanType>, seats: &Option<i32>, max_collections: &Option<i32>, use_policies: &Option<bool>, use_sso: &Option<bool>, use_key_connector: &Option<bool>, use_scim: &Option<bool>, use_groups: &Option<bool>, use_directory: &Option<bool>, use_events: &Option<bool>, use_totp: &Option<bool>, use2fa: &Option<bool>, use_api: &Option<bool>, use_reset_password: &Option<bool>, use_secrets_manager: &Option<bool>, self_host: &Option<bool>, users_get_premium: &Option<bool>, use_custom_permissions: &Option<bool>, 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>, enabled: &Option<bool>, license_key: &Option<&'a str>, public_key: &Option<&'a str>, private_key: &Option<&'a str>, two_factor_providers: &Option<&'a str>, expiration_date: &Option<String>, creation_date: &Option<String>, revision_date: &Option<String>, max_autoscale_seats: &Option<i32>, owners_notified_of_autoscaling: &Option<String>, status: &Option<OrganizationStatusType>, use_password_manager: &Option<bool>, sm_seats: &Option<i32>, sm_service_accounts: &Option<i32>, max_autoscale_sm_seats: &Option<i32>, max_autoscale_sm_service_accounts: &Option<i32>, limit_collection_creation: &Option<bool>, limit_collection_deletion: &Option<bool>, allow_admin_access_to_all_collection_items: &Option<bool>, limit_item_deletion: &Option<bool>, use_risk_insights: &Option<bool>, use_organization_domains: &Option<bool>, use_admin_sponsored_families: &Option<bool>, sync_seats: &Option<bool>, restart_subscription_request: &Option<RestartSubscriptionRequest>, ) -> bool
Validate this expectation’s matcher.
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new, default, Expectation
Sourcepub fn once(&mut self) -> &mut Self
pub fn once(&mut self) -> &mut Self
Expect this expectation to be called exactly once. Shortcut for
times(1)
.
Sourcepub fn times<MockallR>(&mut self, __mockall_r: MockallR) -> &mut Selfwhere
MockallR: Into<TimesRange>,
pub fn times<MockallR>(&mut self, __mockall_r: MockallR) -> &mut Selfwhere
MockallR: Into<TimesRange>,
Restrict the number of times that that this method may be called.
The argument may be:
- A fixed number:
.times(4)
- Various types of range:
.times(5..10)
.times(..10)
.times(5..)
.times(5..=10)
.times(..=10)
- The wildcard:
.times(..)
Sourcepub fn with<MockallMatcher0: for<'a> Predicate<str> + Send + 'static, MockallMatcher1: for<'a> Predicate<Option<Uuid>> + Send + 'static, MockallMatcher2: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher3: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher4: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher5: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher6: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher7: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher8: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher9: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher10: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher11: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher12: for<'a> Predicate<Option<PlanType>> + Send + 'static, MockallMatcher13: for<'a> Predicate<Option<i32>> + Send + 'static, MockallMatcher14: for<'a> Predicate<Option<i32>> + Send + 'static, MockallMatcher15: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher16: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher17: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher18: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher19: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher20: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher21: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher22: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher23: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher24: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher25: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher26: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher27: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher28: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher29: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher30: for<'a> Predicate<Option<i64>> + Send + 'static, MockallMatcher31: for<'a> Predicate<Option<i32>> + Send + 'static, MockallMatcher32: for<'a> Predicate<Option<GatewayType>> + Send + 'static, MockallMatcher33: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher34: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher35: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher36: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher37: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher38: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher39: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher40: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher41: for<'a> Predicate<Option<String>> + Send + 'static, MockallMatcher42: for<'a> Predicate<Option<String>> + Send + 'static, MockallMatcher43: for<'a> Predicate<Option<String>> + Send + 'static, MockallMatcher44: for<'a> Predicate<Option<i32>> + Send + 'static, MockallMatcher45: for<'a> Predicate<Option<String>> + Send + 'static, MockallMatcher46: for<'a> Predicate<Option<OrganizationStatusType>> + Send + 'static, MockallMatcher47: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher48: for<'a> Predicate<Option<i32>> + Send + 'static, MockallMatcher49: for<'a> Predicate<Option<i32>> + Send + 'static, MockallMatcher50: for<'a> Predicate<Option<i32>> + Send + 'static, MockallMatcher51: for<'a> Predicate<Option<i32>> + Send + 'static, MockallMatcher52: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher53: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher54: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher55: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher56: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher57: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher58: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher59: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher60: for<'a> Predicate<Option<RestartSubscriptionRequest>> + Send + 'static>(
&mut self,
organization_id: MockallMatcher0,
id: MockallMatcher1,
identifier: MockallMatcher2,
name: MockallMatcher3,
business_name: MockallMatcher4,
business_address1: MockallMatcher5,
business_address2: MockallMatcher6,
business_address3: MockallMatcher7,
business_country: MockallMatcher8,
business_tax_number: MockallMatcher9,
billing_email: MockallMatcher10,
plan: MockallMatcher11,
plan_type: MockallMatcher12,
seats: MockallMatcher13,
max_collections: MockallMatcher14,
use_policies: MockallMatcher15,
use_sso: MockallMatcher16,
use_key_connector: MockallMatcher17,
use_scim: MockallMatcher18,
use_groups: MockallMatcher19,
use_directory: MockallMatcher20,
use_events: MockallMatcher21,
use_totp: MockallMatcher22,
use2fa: MockallMatcher23,
use_api: MockallMatcher24,
use_reset_password: MockallMatcher25,
use_secrets_manager: MockallMatcher26,
self_host: MockallMatcher27,
users_get_premium: MockallMatcher28,
use_custom_permissions: MockallMatcher29,
storage: MockallMatcher30,
max_storage_gb: MockallMatcher31,
gateway: MockallMatcher32,
gateway_customer_id: MockallMatcher33,
gateway_subscription_id: MockallMatcher34,
reference_data: MockallMatcher35,
enabled: MockallMatcher36,
license_key: MockallMatcher37,
public_key: MockallMatcher38,
private_key: MockallMatcher39,
two_factor_providers: MockallMatcher40,
expiration_date: MockallMatcher41,
creation_date: MockallMatcher42,
revision_date: MockallMatcher43,
max_autoscale_seats: MockallMatcher44,
owners_notified_of_autoscaling: MockallMatcher45,
status: MockallMatcher46,
use_password_manager: MockallMatcher47,
sm_seats: MockallMatcher48,
sm_service_accounts: MockallMatcher49,
max_autoscale_sm_seats: MockallMatcher50,
max_autoscale_sm_service_accounts: MockallMatcher51,
limit_collection_creation: MockallMatcher52,
limit_collection_deletion: MockallMatcher53,
allow_admin_access_to_all_collection_items: MockallMatcher54,
limit_item_deletion: MockallMatcher55,
use_risk_insights: MockallMatcher56,
use_organization_domains: MockallMatcher57,
use_admin_sponsored_families: MockallMatcher58,
sync_seats: MockallMatcher59,
restart_subscription_request: MockallMatcher60,
) -> &mut Self
pub fn with<MockallMatcher0: for<'a> Predicate<str> + Send + 'static, MockallMatcher1: for<'a> Predicate<Option<Uuid>> + Send + 'static, MockallMatcher2: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher3: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher4: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher5: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher6: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher7: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher8: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher9: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher10: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher11: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher12: for<'a> Predicate<Option<PlanType>> + Send + 'static, MockallMatcher13: for<'a> Predicate<Option<i32>> + Send + 'static, MockallMatcher14: for<'a> Predicate<Option<i32>> + Send + 'static, MockallMatcher15: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher16: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher17: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher18: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher19: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher20: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher21: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher22: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher23: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher24: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher25: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher26: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher27: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher28: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher29: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher30: for<'a> Predicate<Option<i64>> + Send + 'static, MockallMatcher31: for<'a> Predicate<Option<i32>> + Send + 'static, MockallMatcher32: for<'a> Predicate<Option<GatewayType>> + Send + 'static, MockallMatcher33: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher34: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher35: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher36: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher37: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher38: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher39: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher40: for<'a> Predicate<Option<&'a str>> + Send + 'static, MockallMatcher41: for<'a> Predicate<Option<String>> + Send + 'static, MockallMatcher42: for<'a> Predicate<Option<String>> + Send + 'static, MockallMatcher43: for<'a> Predicate<Option<String>> + Send + 'static, MockallMatcher44: for<'a> Predicate<Option<i32>> + Send + 'static, MockallMatcher45: for<'a> Predicate<Option<String>> + Send + 'static, MockallMatcher46: for<'a> Predicate<Option<OrganizationStatusType>> + Send + 'static, MockallMatcher47: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher48: for<'a> Predicate<Option<i32>> + Send + 'static, MockallMatcher49: for<'a> Predicate<Option<i32>> + Send + 'static, MockallMatcher50: for<'a> Predicate<Option<i32>> + Send + 'static, MockallMatcher51: for<'a> Predicate<Option<i32>> + Send + 'static, MockallMatcher52: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher53: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher54: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher55: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher56: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher57: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher58: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher59: for<'a> Predicate<Option<bool>> + Send + 'static, MockallMatcher60: for<'a> Predicate<Option<RestartSubscriptionRequest>> + Send + 'static>( &mut self, organization_id: MockallMatcher0, id: MockallMatcher1, identifier: MockallMatcher2, name: MockallMatcher3, business_name: MockallMatcher4, business_address1: MockallMatcher5, business_address2: MockallMatcher6, business_address3: MockallMatcher7, business_country: MockallMatcher8, business_tax_number: MockallMatcher9, billing_email: MockallMatcher10, plan: MockallMatcher11, plan_type: MockallMatcher12, seats: MockallMatcher13, max_collections: MockallMatcher14, use_policies: MockallMatcher15, use_sso: MockallMatcher16, use_key_connector: MockallMatcher17, use_scim: MockallMatcher18, use_groups: MockallMatcher19, use_directory: MockallMatcher20, use_events: MockallMatcher21, use_totp: MockallMatcher22, use2fa: MockallMatcher23, use_api: MockallMatcher24, use_reset_password: MockallMatcher25, use_secrets_manager: MockallMatcher26, self_host: MockallMatcher27, users_get_premium: MockallMatcher28, use_custom_permissions: MockallMatcher29, storage: MockallMatcher30, max_storage_gb: MockallMatcher31, gateway: MockallMatcher32, gateway_customer_id: MockallMatcher33, gateway_subscription_id: MockallMatcher34, reference_data: MockallMatcher35, enabled: MockallMatcher36, license_key: MockallMatcher37, public_key: MockallMatcher38, private_key: MockallMatcher39, two_factor_providers: MockallMatcher40, expiration_date: MockallMatcher41, creation_date: MockallMatcher42, revision_date: MockallMatcher43, max_autoscale_seats: MockallMatcher44, owners_notified_of_autoscaling: MockallMatcher45, status: MockallMatcher46, use_password_manager: MockallMatcher47, sm_seats: MockallMatcher48, sm_service_accounts: MockallMatcher49, max_autoscale_sm_seats: MockallMatcher50, max_autoscale_sm_service_accounts: MockallMatcher51, limit_collection_creation: MockallMatcher52, limit_collection_deletion: MockallMatcher53, allow_admin_access_to_all_collection_items: MockallMatcher54, limit_item_deletion: MockallMatcher55, use_risk_insights: MockallMatcher56, use_organization_domains: MockallMatcher57, use_admin_sponsored_families: MockallMatcher58, sync_seats: MockallMatcher59, restart_subscription_request: MockallMatcher60, ) -> &mut Self
Set matching criteria for this Expectation.
The matching predicate can be anything implemening the
Predicate
trait. Only
one matcher can be set per Expectation
at a time.
Sourcepub fn withf<MockallF>(&mut self, __mockall_f: MockallF) -> &mut Selfwhere
MockallF: for<'a> Fn(&str, &Option<Uuid>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<PlanType>, &Option<i32>, &Option<i32>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<i64>, &Option<i32>, &Option<GatewayType>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<bool>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<String>, &Option<String>, &Option<String>, &Option<i32>, &Option<String>, &Option<OrganizationStatusType>, &Option<bool>, &Option<i32>, &Option<i32>, &Option<i32>, &Option<i32>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<RestartSubscriptionRequest>) -> bool + Send + 'static,
pub fn withf<MockallF>(&mut self, __mockall_f: MockallF) -> &mut Selfwhere
MockallF: for<'a> Fn(&str, &Option<Uuid>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<PlanType>, &Option<i32>, &Option<i32>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<i64>, &Option<i32>, &Option<GatewayType>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<bool>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<String>, &Option<String>, &Option<String>, &Option<i32>, &Option<String>, &Option<OrganizationStatusType>, &Option<bool>, &Option<i32>, &Option<i32>, &Option<i32>, &Option<i32>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<RestartSubscriptionRequest>) -> bool + Send + 'static,
Set a matching function for this Expectation.
This is equivalent to calling with
with a
function argument, like with(predicate::function(f))
.
Sourcepub fn withf_st<MockallF>(&mut self, __mockall_f: MockallF) -> &mut Selfwhere
MockallF: for<'a> Fn(&str, &Option<Uuid>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<PlanType>, &Option<i32>, &Option<i32>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<i64>, &Option<i32>, &Option<GatewayType>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<bool>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<String>, &Option<String>, &Option<String>, &Option<i32>, &Option<String>, &Option<OrganizationStatusType>, &Option<bool>, &Option<i32>, &Option<i32>, &Option<i32>, &Option<i32>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<RestartSubscriptionRequest>) -> bool + 'static,
pub fn withf_st<MockallF>(&mut self, __mockall_f: MockallF) -> &mut Selfwhere
MockallF: for<'a> Fn(&str, &Option<Uuid>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<PlanType>, &Option<i32>, &Option<i32>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<i64>, &Option<i32>, &Option<GatewayType>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<bool>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<&'a str>, &Option<String>, &Option<String>, &Option<String>, &Option<i32>, &Option<String>, &Option<OrganizationStatusType>, &Option<bool>, &Option<i32>, &Option<i32>, &Option<i32>, &Option<i32>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<bool>, &Option<RestartSubscriptionRequest>) -> bool + 'static,
Single-threaded version of withf
.
Can be used when the argument type isn’t Send
.