🚧 Adds searching algorithm

Signed-off-by: Ash Svitan <selfsigned-ash@proton.me>
This commit is contained in:
2026-04-30 19:47:08 +02:00
parent 91af9594b3
commit 631c807571
3 changed files with 60 additions and 17 deletions
+3 -10
View File
@@ -12,8 +12,6 @@ pub struct Vaults {
#[derive(Deserialize, Debug)]
pub struct Vault {
pub name: String,
pub vault_id: String,
pub share_id: String,
}
#[derive(Deserialize, Debug)]
@@ -24,28 +22,23 @@ pub struct Items {
#[derive(Deserialize, Debug)]
pub struct Item {
pub id: String,
pub share_id: String,
pub vault_id: String,
pub content: ItemContent,
pub state: String,
pub create_time: String,
pub modify_time: String,
}
#[derive(Deserialize, Debug)]
pub struct ItemContent {
pub title: String,
pub note: String,
pub item_uuid: String,
pub content: ItemContentContent,
}
#[derive(Deserialize, Debug)]
pub struct ItemContentContent {
pub Login: Option<ItemLogin>,
#[serde(rename = "Login")]
pub login: Option<ItemLogin>,
}
#[derive(Deserialize, Debug)]
#[derive(Deserialize, Debug, Clone)]
pub struct ItemLogin {
pub email: String,
pub username: String,