From bcae263e4e888274f399a75ec5b171ee25edf894 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 12 Apr 2020 02:09:15 -0400 Subject: handle entries with no username or password --- src/api.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/api.rs') diff --git a/src/api.rs b/src/api.rs index e70c45b..ce8ae28 100644 --- a/src/api.rs +++ b/src/api.rs @@ -65,9 +65,9 @@ pub struct Cipher { #[derive(serde::Serialize, serde::Deserialize, Debug)] pub struct Login { #[serde(rename = "Username")] - pub username: String, + pub username: Option, #[serde(rename = "Password")] - pub password: String, + pub password: Option, } #[derive(Debug)] -- cgit v1.2.3-54-g00ecf