Adds updating fields

Signed-off-by: Ash Svitan <selfsigned-ash@proton.me>
This commit is contained in:
2026-04-30 21:07:11 +02:00
parent cad0caf379
commit efb661c32a
3 changed files with 36 additions and 22 deletions
-6
View File
@@ -9,7 +9,6 @@ pub struct Item {
pub id: String,
pub name: String,
pub user: Option<String>,
pub uris: Option<Vec<String>>,
#[serde(rename = "type")]
pub type_: String,
}
@@ -20,7 +19,6 @@ pub struct LoginItem {
pub name: String,
pub user: String,
pub password: String,
pub uris: Vec<String>,
}
pub fn check_rbw() -> Result<(), Error> {
@@ -78,10 +76,6 @@ pub fn get_logins(items: Vec<Item>) -> Result<Vec<LoginItem>, Error> {
Some(s) => s.to_string(),
None => password,
},
uris: match item.uris.clone() {
Some(val) => val,
None => Vec::new(),
},
});
}