Struct MockOrganizationsApi

Source
pub struct MockOrganizationsApi {
    OrganizationsApi_expectations: MockOrganizationsApi_OrganizationsApi,
}

Fields§

§OrganizationsApi_expectations: MockOrganizationsApi_OrganizationsApi

Implementations§

Source§

impl MockOrganizationsApi

Source

pub fn checkpoint(&mut self)

Validate that all current expectations for all methods have been satisfied, and discard them.

Source

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 MockOrganizationsApi

Source

pub fn expect_api_key(&mut self) -> &mut Expectation

Create an Expectation for mocking the api_key method

Source

pub fn expect_api_key_information(&mut self) -> &mut Expectation

Create an Expectation for mocking the api_key_information method

Source

pub fn expect_create_without_payment(&mut self) -> &mut Expectation

Create an Expectation for mocking the create_without_payment method

Source

pub fn expect_delete(&mut self) -> &mut Expectation

Create an Expectation for mocking the delete method

Source

pub fn expect_get(&mut self) -> &mut Expectation

Create an Expectation for mocking the get method

Source

pub fn expect_get_auto_enroll_status(&mut self) -> &mut Expectation

Create an Expectation for mocking the get_auto_enroll_status method

Source

pub fn expect_get_license(&mut self) -> &mut Expectation

Create an Expectation for mocking the get_license method

Source

pub fn expect_get_plan_type(&mut self) -> &mut Expectation

Create an Expectation for mocking the get_plan_type method

Source

pub fn expect_get_public_key(&mut self) -> &mut Expectation

Create an Expectation for mocking the get_public_key method

Source

pub fn expect_get_sso(&mut self) -> &mut Expectation

Create an Expectation for mocking the get_sso method

Source

pub fn expect_get_subscription(&mut self) -> &mut Expectation

Create an Expectation for mocking the get_subscription method

Source

pub fn expect_get_tax_info(&mut self) -> &mut Expectation

Create an Expectation for mocking the get_tax_info method

Source

pub fn expect_get_user(&mut self) -> &mut Expectation

Create an Expectation for mocking the get_user method

Source

pub fn expect_leave(&mut self) -> &mut Expectation

Create an Expectation for mocking the leave method

Source

pub fn expect_post(&mut self) -> &mut Expectation

Create an Expectation for mocking the post method

Source

pub fn expect_post_cancel(&mut self) -> &mut Expectation

Create an Expectation for mocking the post_cancel method

Source

pub fn expect_post_delete_recover_token(&mut self) -> &mut Expectation

Create an Expectation for mocking the post_delete_recover_token method

Source

pub fn expect_post_keys(&mut self) -> &mut Expectation

Create an Expectation for mocking the post_keys method

Source

pub fn expect_post_reinstate(&mut self) -> &mut Expectation

Create an Expectation for mocking the post_reinstate method

Source

pub fn expect_post_seat(&mut self) -> &mut Expectation

Create an Expectation for mocking the post_seat method

Source

pub fn expect_post_sm_subscription(&mut self) -> &mut Expectation

Create an Expectation for mocking the post_sm_subscription method

Source

pub fn expect_post_sso(&mut self) -> &mut Expectation

Create an Expectation for mocking the post_sso method

Source

pub fn expect_post_storage(&mut self) -> &mut Expectation

Create an Expectation for mocking the post_storage method

Source

pub fn expect_post_subscribe_secrets_manager(&mut self) -> &mut Expectation

Create an Expectation for mocking the post_subscribe_secrets_manager method

Source

pub fn expect_post_subscription(&mut self) -> &mut Expectation

Create an Expectation for mocking the post_subscription method

Source

pub fn expect_post_upgrade(&mut self) -> &mut Expectation

Create an Expectation for mocking the post_upgrade method

Source

pub fn expect_post_verify_bank(&mut self) -> &mut Expectation

Create an Expectation for mocking the post_verify_bank method

Source

pub fn expect_put(&mut self) -> &mut Expectation

Create an Expectation for mocking the put method

Source

pub fn expect_put_collection_management(&mut self) -> &mut Expectation

Create an Expectation for mocking the put_collection_management method

Source

pub fn expect_put_tax_info(&mut self) -> &mut Expectation

Create an Expectation for mocking the put_tax_info method

Source

pub fn expect_rotate_api_key(&mut self) -> &mut Expectation

Create an Expectation for mocking the rotate_api_key method

Trait Implementations§

Source§

impl Debug for MockOrganizationsApi

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for MockOrganizationsApi

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl OrganizationsApi for MockOrganizationsApi

Source§

fn api_key<'a, 'life0, 'async_trait>( &'life0 self, id: &'a str, organization_api_key_request_model: Option<OrganizationApiKeyRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<ApiKeyResponseModel, Error<ApiKeyError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /organizations/{id}/api-key

Source§

fn api_key_information<'a, 'life0, 'async_trait>( &'life0 self, id: Uuid, type: OrganizationApiKeyType, ) -> Pin<Box<dyn Future<Output = Result<OrganizationApiKeyInformationListResponseModel, Error<ApiKeyInformationError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

GET /organizations/{id}/api-key-information/{type}

Source§

fn create_without_payment<'a, 'life0, 'async_trait>( &'life0 self, organization_no_payment_create_request: Option<OrganizationNoPaymentCreateRequest>, ) -> Pin<Box<dyn Future<Output = Result<OrganizationResponseModel, Error<CreateWithoutPaymentError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /organizations/create-without-payment

Source§

fn delete<'a, 'life0, 'async_trait>( &'life0 self, id: &'a str, secret_verification_request_model: Option<SecretVerificationRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

DELETE /organizations/{id}

Source§

fn get<'a, 'life0, 'async_trait>( &'life0 self, id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<OrganizationResponseModel, Error<GetError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

GET /organizations/{id}

Source§

fn get_auto_enroll_status<'a, 'life0, 'async_trait>( &'life0 self, identifier: &'a str, ) -> Pin<Box<dyn Future<Output = Result<OrganizationAutoEnrollStatusResponseModel, Error<GetAutoEnrollStatusError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

GET /organizations/{identifier}/auto-enroll-status

Source§

fn get_license<'a, 'life0, 'async_trait>( &'life0 self, id: Uuid, installation_id: Option<Uuid>, ) -> Pin<Box<dyn Future<Output = Result<OrganizationLicense, Error<GetLicenseError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

GET /organizations/{id}/license

Source§

fn get_plan_type<'a, 'life0, 'async_trait>( &'life0 self, id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<PlanType, Error<GetPlanTypeError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

GET /organizations/{id}/plan-type

Source§

fn get_public_key<'a, 'life0, 'async_trait>( &'life0 self, id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<OrganizationPublicKeyResponseModel, Error<GetPublicKeyError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

GET /organizations/{id}/public-key

Source§

fn get_sso<'a, 'life0, 'async_trait>( &'life0 self, id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<OrganizationSsoResponseModel, Error<GetSsoError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

GET /organizations/{id}/sso

Source§

fn get_subscription<'a, 'life0, 'async_trait>( &'life0 self, id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<OrganizationSubscriptionResponseModel, Error<GetSubscriptionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

GET /organizations/{id}/subscription

Source§

fn get_tax_info<'a, 'life0, 'async_trait>( &'life0 self, id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<TaxInfoResponseModel, Error<GetTaxInfoError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

GET /organizations/{id}/tax

Source§

fn get_user<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<ProfileOrganizationResponseModelListResponseModel, Error<GetUserError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

GET /organizations

Source§

fn leave<'a, 'life0, 'async_trait>( &'life0 self, id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<(), Error<LeaveError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /organizations/{id}/leave

Source§

fn post<'a, 'life0, 'async_trait>( &'life0 self, organization_create_request_model: Option<OrganizationCreateRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<OrganizationResponseModel, Error<PostError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /organizations

Source§

fn post_cancel<'a, 'life0, 'async_trait>( &'life0 self, id: Uuid, subscription_cancellation_request_model: Option<SubscriptionCancellationRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<(), Error<PostCancelError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /organizations/{id}/cancel

Source§

fn post_delete_recover_token<'a, 'life0, 'async_trait>( &'life0 self, id: Uuid, organization_verify_delete_recover_request_model: Option<OrganizationVerifyDeleteRecoverRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<(), Error<PostDeleteRecoverTokenError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /organizations/{id}/delete-recover-token

Source§

fn post_keys<'a, 'life0, 'async_trait>( &'life0 self, id: Uuid, organization_keys_request_model: Option<OrganizationKeysRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<OrganizationKeysResponseModel, Error<PostKeysError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /organizations/{id}/keys

Source§

fn post_reinstate<'a, 'life0, 'async_trait>( &'life0 self, id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<(), Error<PostReinstateError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /organizations/{id}/reinstate

Source§

fn post_seat<'a, 'life0, 'async_trait>( &'life0 self, id: Uuid, organization_seat_request_model: Option<OrganizationSeatRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<PaymentResponseModel, Error<PostSeatError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /organizations/{id}/seat

Source§

fn post_sm_subscription<'a, 'life0, 'async_trait>( &'life0 self, id: Uuid, secrets_manager_subscription_update_request_model: Option<SecretsManagerSubscriptionUpdateRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<ProfileOrganizationResponseModel, Error<PostSmSubscriptionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /organizations/{id}/sm-subscription

Source§

fn post_sso<'a, 'life0, 'async_trait>( &'life0 self, id: Uuid, organization_sso_request_model: Option<OrganizationSsoRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<OrganizationSsoResponseModel, Error<PostSsoError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /organizations/{id}/sso

Source§

fn post_storage<'a, 'life0, 'async_trait>( &'life0 self, id: &'a str, storage_request_model: Option<StorageRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<PaymentResponseModel, Error<PostStorageError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /organizations/{id}/storage

Source§

fn post_subscribe_secrets_manager<'a, 'life0, 'async_trait>( &'life0 self, id: Uuid, secrets_manager_subscribe_request_model: Option<SecretsManagerSubscribeRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<ProfileOrganizationResponseModel, Error<PostSubscribeSecretsManagerError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /organizations/{id}/subscribe-secrets-manager

Source§

fn post_subscription<'a, 'life0, 'async_trait>( &'life0 self, id: Uuid, organization_subscription_update_request_model: Option<OrganizationSubscriptionUpdateRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<ProfileOrganizationResponseModel, Error<PostSubscriptionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /organizations/{id}/subscription

Source§

fn post_upgrade<'a, 'life0, 'async_trait>( &'life0 self, id: Uuid, organization_upgrade_request_model: Option<OrganizationUpgradeRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<PaymentResponseModel, Error<PostUpgradeError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /organizations/{id}/upgrade

Source§

fn post_verify_bank<'a, 'life0, 'async_trait>( &'life0 self, id: Uuid, organization_verify_bank_request_model: Option<OrganizationVerifyBankRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<(), Error<PostVerifyBankError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /organizations/{id}/verify-bank

Source§

fn put<'a, 'life0, 'async_trait>( &'life0 self, id: &'a str, organization_update_request_model: Option<OrganizationUpdateRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<OrganizationResponseModel, Error<PutError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

PUT /organizations/{id}

Source§

fn put_collection_management<'a, 'life0, 'async_trait>( &'life0 self, id: Uuid, organization_collection_management_update_request_model: Option<OrganizationCollectionManagementUpdateRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<OrganizationResponseModel, Error<PutCollectionManagementError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

PUT /organizations/{id}/collection-management

Source§

fn put_tax_info<'a, 'life0, 'async_trait>( &'life0 self, id: Uuid, expanded_tax_info_update_request_model: Option<ExpandedTaxInfoUpdateRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<(), Error<PutTaxInfoError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

PUT /organizations/{id}/tax

Source§

fn rotate_api_key<'a, 'life0, 'async_trait>( &'life0 self, id: &'a str, organization_api_key_request_model: Option<OrganizationApiKeyRequestModel>, ) -> Pin<Box<dyn Future<Output = Result<ApiKeyResponseModel, Error<RotateApiKeyError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /organizations/{id}/rotate-api-key

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Any for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

§

fn type_name(&self) -> &'static str

§

impl<T> AnySync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> ErasedDestructor for T
where T: 'static,