🚧 Adds searching algorithm
Signed-off-by: Ash Svitan <selfsigned-ash@proton.me>
This commit is contained in:
+3
-10
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user