bitwarden_uniffi/vault/
password_history.rs1use bitwarden_vault::{PasswordHistory, PasswordHistoryView};
2
3use crate::Result;
4
5#[allow(missing_docs)]
6#[derive(uniffi::Object)]
7pub struct PasswordHistoryClient(pub(crate) bitwarden_vault::PasswordHistoryClient);
8
9#[uniffi::export]
10impl PasswordHistoryClient {
11 pub fn encrypt(&self, password_history: PasswordHistoryView) -> Result<PasswordHistory> {
13 Ok(self.0.encrypt(password_history)?)
14 }
15
16 pub fn decrypt_list(&self, list: Vec<PasswordHistory>) -> Result<Vec<PasswordHistoryView>> {
18 Ok(self.0.decrypt_list(list)?)
19 }
20}