pub struct MockOrganizationUsersKeysApi {
OrganizationUsersKeysApi_expectations: MockOrganizationUsersKeysApi_OrganizationUsersKeysApi,
}Fields§
§OrganizationUsersKeysApi_expectations: MockOrganizationUsersKeysApi_OrganizationUsersKeysApiImplementations§
Source§impl MockOrganizationUsersKeysApi
impl MockOrganizationUsersKeysApi
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 MockOrganizationUsersKeysApi
impl MockOrganizationUsersKeysApi
Sourcepub fn expect_get_pending_v2_upgrades(&mut self) -> &mut Expectation
pub fn expect_get_pending_v2_upgrades(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_pending_v2_upgrades method
Sourcepub fn expect_post_v2_upgrades(&mut self) -> &mut Expectation
pub fn expect_post_v2_upgrades(&mut self) -> &mut Expectation
Create an Expectation for mocking the post_v2_upgrades method
Trait Implementations§
Source§impl Debug for MockOrganizationUsersKeysApi
impl Debug for MockOrganizationUsersKeysApi
Source§impl OrganizationUsersKeysApi for MockOrganizationUsersKeysApi
impl OrganizationUsersKeysApi for MockOrganizationUsersKeysApi
Source§fn get_pending_v2_upgrades<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
continuation_token: Option<Uuid>,
) -> Pin<Box<dyn Future<Output = Result<OrganizationUserPendingV2UpgradeResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_pending_v2_upgrades<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
continuation_token: Option<Uuid>,
) -> Pin<Box<dyn Future<Output = Result<OrganizationUserPendingV2UpgradeResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{orgId}/users/keys/pending-v2-upgrades
A V1 to V2 upgrade rotation cannot re-wrap the account recovery key, because that requires
the member to trust the organization’s public key and the upgrade does not prompt the
member. The rotation leaves a V2 upgrade token on the membership instead. Account recovery
gives the admin the member’s V1 user key, so the admin unwraps the V2 user key from the
token and re-wraps the account recovery key with it. Only Owners and Admins of
the organization can call this endpoint. It returns only the members the caller can recover.
The client posts each page to POST v2-upgrades, then reads the next page with the
continuation token of the response, until the token is null. A page can be empty and still
have a token.
Source§fn post_v2_upgrades<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
organization_user_v2_upgrades_request_model: Option<OrganizationUserV2UpgradesRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn post_v2_upgrades<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
organization_user_v2_upgrades_request_model: Option<OrganizationUserV2UpgradesRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organizations/{orgId}/users/keys/v2-upgrades Only Owners and Admins of the organization can call this endpoint, and only for members they can recover. A membership that has changed since the read is skipped rather than rejected.
Auto Trait Implementations§
impl Freeze for MockOrganizationUsersKeysApi
impl RefUnwindSafe for MockOrganizationUsersKeysApi
impl Send for MockOrganizationUsersKeysApi
impl Sync for MockOrganizationUsersKeysApi
impl Unpin for MockOrganizationUsersKeysApi
impl UnsafeUnpin for MockOrganizationUsersKeysApi
impl UnwindSafe for MockOrganizationUsersKeysApi
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more