pub struct MockOrganizationKeysApi {
OrganizationKeysApi_expectations: MockOrganizationKeysApi_OrganizationKeysApi,
}Fields§
§OrganizationKeysApi_expectations: MockOrganizationKeysApi_OrganizationKeysApiImplementations§
Source§impl MockOrganizationKeysApi
impl MockOrganizationKeysApi
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 MockOrganizationKeysApi
impl MockOrganizationKeysApi
Sourcepub fn expect_set_organization_key_id(&mut self) -> &mut Expectation
pub fn expect_set_organization_key_id(&mut self) -> &mut Expectation
Create an Expectation for mocking the set_organization_key_id method
Trait Implementations§
Source§impl Debug for MockOrganizationKeysApi
impl Debug for MockOrganizationKeysApi
Source§impl Default for MockOrganizationKeysApi
impl Default for MockOrganizationKeysApi
Source§impl OrganizationKeysApi for MockOrganizationKeysApi
impl OrganizationKeysApi for MockOrganizationKeysApi
Source§fn set_organization_key_id<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
set_organization_key_id_request: SetOrganizationKeyIdRequest,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn set_organization_key_id<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
set_organization_key_id_request: SetOrganizationKeyIdRequest,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organizations/{orgId}/keys/organization-key-id Reports the key id of the organization’s current organization key, to backfill organizations without one. Only Owners and Admins who hold the organization key can call this endpoint.
Auto Trait Implementations§
impl Freeze for MockOrganizationKeysApi
impl RefUnwindSafe for MockOrganizationKeysApi
impl Send for MockOrganizationKeysApi
impl Sync for MockOrganizationKeysApi
impl Unpin for MockOrganizationKeysApi
impl UnsafeUnpin for MockOrganizationKeysApi
impl UnwindSafe for MockOrganizationKeysApi
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
§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
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Consume a handle, getting back the initial
Arc<> Read more