From eeabcbeb6090852bf0bdefe1e0799cb39cf0730b Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 19 Apr 2020 07:41:06 -0400 Subject: more model cleanup --- src/api.rs | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src') diff --git a/src/api.rs b/src/api.rs index 89da6d7..44e53a4 100644 --- a/src/api.rs +++ b/src/api.rs @@ -141,22 +141,15 @@ struct SyncResPasswordHistory { struct CiphersPostReq { #[serde(rename = "type")] ty: u32, // XXX what are the valid types? - #[serde(rename = "folderId")] - folder_id: Option, - #[serde(rename = "organizationId")] - organization_id: Option, name: String, notes: Option, - favorite: bool, login: CiphersPostReqLogin, } #[derive(serde::Serialize, Debug)] struct CiphersPostReqLogin { - uri: Option, username: Option, password: Option, - totp: Option, } #[derive(serde::Serialize, Debug)] @@ -302,16 +295,11 @@ impl Client { ) -> Result<()> { let req = CiphersPostReq { ty: 1, - folder_id: None, - organization_id: None, name: name.to_string(), notes: notes.map(std::string::ToString::to_string), - favorite: false, login: CiphersPostReqLogin { - uri: None, username: username.map(std::string::ToString::to_string), password: password.map(std::string::ToString::to_string), - totp: None, }, }; let client = reqwest::blocking::Client::new(); -- cgit v1.2.3-54-g00ecf