Implement Rust-backed Android name search (#101)
This commit is contained in:
1 parent
a06f39af23
commit
c7703d8efd
21 files changed
+910
-27
No files matched your search
@@ -48,6 +48,23 @@ impl From<PasswordNavigation> for MobilePasswordNavigation {
|
||||
}
|
||||
#[uniffi::export]
|
||||
impl MobilePrivateRuntime {
|
||||
pub fn password_name_search(
|
||||
&self,
|
||||
query: String,
|
||||
) -> Result<Vec<MobileNavigationRow>, MobilePasswordFfiError> {
|
||||
ironstorage::mobile_passwords::navigation::search(&self.storage, &query)
|
||||
.map(|rows| rows.into_iter().map(Into::into).collect())
|
||||
.map_err(Into::into)
|
||||
}
|
||||
pub fn open_password_search_result(
|
||||
&self,
|
||||
id: String,
|
||||
revision: String,
|
||||
) -> Result<MobilePasswordNavigation, MobilePasswordFfiError> {
|
||||
ironstorage::mobile_passwords::navigation::open_search_result(&self.storage, &id, &revision)
|
||||
.map(Into::into)
|
||||
.map_err(Into::into)
|
||||
}
|
||||
pub fn password_navigation(
|
||||
&self,
|
||||
path: String,
|
||||
|
||||
Reference in new issue
Block a user