pub struct MockLicensesApi {
LicensesApi_expectations: MockLicensesApi_LicensesApi,
}Fields§
§LicensesApi_expectations: MockLicensesApi_LicensesApiImplementations§
Source§impl MockLicensesApi
impl MockLicensesApi
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 MockLicensesApi
impl MockLicensesApi
Sourcepub fn expect_get_user(&mut self) -> &mut Expectation
pub fn expect_get_user(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_user method
Sourcepub fn expect_organization_sync(&mut self) -> &mut Expectation
pub fn expect_organization_sync(&mut self) -> &mut Expectation
Create an Expectation for mocking the organization_sync method
Trait Implementations§
Source§impl Debug for MockLicensesApi
impl Debug for MockLicensesApi
Source§impl Default for MockLicensesApi
impl Default for MockLicensesApi
Source§impl LicensesApi for MockLicensesApi
impl LicensesApi for MockLicensesApi
Source§fn get_user<'a, 'life0, 'async_trait>(
&'life0 self,
id: &'a str,
key: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<UserLicense, Error<GetUserError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_user<'a, 'life0, 'async_trait>(
&'life0 self,
id: &'a str,
key: Option<&'a str>,
) -> Pin<Box<dyn Future<Output = Result<UserLicense, Error<GetUserError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /licenses/user/{id}
Source§fn organization_sync<'a, 'life0, 'async_trait>(
&'life0 self,
id: &'a str,
self_hosted_organization_license_request_model: Option<SelfHostedOrganizationLicenseRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<OrganizationLicense, Error<OrganizationSyncError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn organization_sync<'a, 'life0, 'async_trait>(
&'life0 self,
id: &'a str,
self_hosted_organization_license_request_model: Option<SelfHostedOrganizationLicenseRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<OrganizationLicense, Error<OrganizationSyncError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /licenses/organization/{id}
Auto Trait Implementations§
impl Freeze for MockLicensesApi
impl RefUnwindSafe for MockLicensesApi
impl Send for MockLicensesApi
impl Sync for MockLicensesApi
impl Unpin for MockLicensesApi
impl UnsafeUnpin for MockLicensesApi
impl UnwindSafe for MockLicensesApi
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