File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed
crates/bitwarden-exporters/src Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -228,32 +228,20 @@ pub fn drivers_license_to_identity(
228
228
} ;
229
229
230
230
let identity = Identity {
231
- title : None ,
232
231
first_name,
233
- middle_name : None ,
234
232
last_name,
235
- address1 : None ,
236
- address2 : None ,
237
- address3 : None ,
238
- city : None ,
239
233
// Map territory (state/province) to state field
240
234
state : drivers_license
241
235
. territory
242
236
. as_ref ( )
243
237
. map ( |t| t. value . 0 . clone ( ) ) ,
244
- postal_code : None ,
245
238
// Map country to country field
246
239
country : drivers_license. country . as_ref ( ) . map ( |c| c. value . 0 . clone ( ) ) ,
247
- company : None , // According to mapping doc, issuingAuthority should be CustomField
248
- email : None ,
249
- phone : None ,
250
- ssn : None ,
251
- username : None ,
252
- passport_number : None ,
253
240
license_number : drivers_license
254
241
. license_number
255
242
. as_ref ( )
256
243
. map ( |l| l. value . 0 . clone ( ) ) ,
244
+ ..Default :: default ( )
257
245
} ;
258
246
259
247
// Create custom fields for unmapped data according to CXF mapping document
Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ pub enum SecureNoteType {
280
280
}
281
281
282
282
#[ allow( missing_docs) ]
283
- #[ derive( Clone ) ]
283
+ #[ derive( Clone , Default ) ]
284
284
pub struct Identity {
285
285
pub title : Option < String > ,
286
286
pub first_name : Option < String > ,
You can’t perform that action at this time.
0 commit comments