async fn share_cipher(
api_client: &dyn CiphersApi,
repository: &dyn Repository<Cipher>,
encrypted_cipher: EncryptionContext,
collection_ids: Vec<CollectionId>,
) -> Result<Cipher, CipherError>Expand description
Standalone function that shares a cipher to an organization via API call. This function is extracted to allow for easier testing with mocked dependencies.