@@ -140,7 +140,7 @@ pub fn parse_site_native_file(xml_path: &Path) -> Result<SiteNative, Error> {
140140/// name: "Demographics".to_string(),
141141/// category_type: "normal".to_string(),
142142/// highest_index: 0,
143- /// fields: vec![
143+ /// fields: Some( vec![
144144/// Field {
145145/// name: "address".to_string(),
146146/// field_type: "text".to_string(),
@@ -245,13 +245,13 @@ pub fn parse_site_native_file(xml_path: &Path) -> Result<SiteNative, Error> {
245245/// },
246246/// ]),
247247/// },
248- /// ],
248+ /// ]) ,
249249/// },
250250/// Category {
251251/// name: "Enrollment".to_string(),
252252/// category_type: "normal".to_string(),
253253/// highest_index: 0,
254- /// fields: vec![
254+ /// fields: Some( vec![
255255/// Field {
256256/// name: "enrollment_closed_date".to_string(),
257257/// field_type: "popUpCalendar".to_string(),
@@ -305,7 +305,7 @@ pub fn parse_site_native_file(xml_path: &Path) -> Result<SiteNative, Error> {
305305/// keep_history: true,
306306/// entries: None,
307307/// },
308- /// ],
308+ /// ]) ,
309309/// },
310310/// ]),
311311/// }]),
@@ -353,7 +353,7 @@ pub fn parse_site_native_file(xml_path: &Path) -> Result<SiteNative, Error> {
353353/// name: "Demographics".to_string(),
354354/// category_type: "normal".to_string(),
355355/// highest_index: 0,
356- /// fields: vec![Field {
356+ /// fields: Some( vec![Field {
357357/// name: "address".to_string(),
358358/// field_type: "text".to_string(),
359359/// data_type: Some("string".to_string()),
@@ -375,7 +375,7 @@ pub fn parse_site_native_file(xml_path: &Path) -> Result<SiteNative, Error> {
375375/// }),
376376/// reason: None,
377377/// }]),
378- /// }],
378+ /// }]) ,
379379/// }]),
380380/// }]),
381381/// },
@@ -493,7 +493,7 @@ pub fn parse_subject_native_file(xml_path: &Path) -> Result<SubjectNative, Error
493493/// name: "Demographics".to_string(),
494494/// category_type: "normal".to_string(),
495495/// highest_index: 0,
496- /// fields: vec![Field {
496+ /// fields: Some( vec![Field {
497497/// name: "breed".to_string(),
498498/// field_type: "combo-box".to_string(),
499499/// data_type: Some("string".to_string()),
@@ -515,7 +515,7 @@ pub fn parse_subject_native_file(xml_path: &Path) -> Result<SubjectNative, Error
515515/// }),
516516/// reason: None,
517517/// }]),
518- /// }],
518+ /// }]) ,
519519/// }]),
520520/// }]),
521521/// },
@@ -561,7 +561,7 @@ pub fn parse_subject_native_file(xml_path: &Path) -> Result<SubjectNative, Error
561561/// name: "Demographics".to_string(),
562562/// category_type: "normal".to_string(),
563563/// highest_index: 0,
564- /// fields: vec![Field {
564+ /// fields: Some( vec![Field {
565565/// name: "breed".to_string(),
566566/// field_type: "combo-box".to_string(),
567567/// data_type: Some("string".to_string()),
@@ -583,13 +583,14 @@ pub fn parse_subject_native_file(xml_path: &Path) -> Result<SubjectNative, Error
583583/// }),
584584/// reason: None,
585585/// }]),
586- /// }],
586+ /// }]) ,
587587/// }]),
588588/// }]),
589589/// },
590590/// ],
591591/// };
592592/// let result = parse_subject_native_string(xml).unwrap();
593+ ///
593594/// assert_eq!(result, expected);
594595/// ```
595596pub fn parse_subject_native_string ( xml_str : & str ) -> Result < SubjectNative , Error > {
@@ -696,7 +697,7 @@ pub fn parse_user_native_file(xml_path: &Path) -> Result<UserNative, Error> {
696697/// name: "demographics".to_string(),
697698/// category_type: "normal".to_string(),
698699/// highest_index: 0,
699- /// fields: vec![
700+ /// fields: Some( vec![
700701/// Field {
701702/// name: "address".to_string(),
702703/// field_type: "text".to_string(),
@@ -731,13 +732,13 @@ pub fn parse_user_native_file(xml_path: &Path) -> Result<UserNative, Error> {
731732/// reason: None,
732733/// }]),
733734/// },
734- /// ],
735+ /// ]) ,
735736/// },
736737/// Category {
737738/// name: "Administrative".to_string(),
738739/// category_type: "normal".to_string(),
739740/// highest_index: 0,
740- /// fields: vec![
741+ /// fields: Some( vec![
741742/// Field {
742743/// name: "study_assignment".to_string(),
743744/// field_type: "text".to_string(),
@@ -771,14 +772,15 @@ pub fn parse_user_native_file(xml_path: &Path) -> Result<UserNative, Error> {
771772/// },
772773/// ]),
773774/// },
774- /// ],
775+ /// ]) ,
775776/// },
776777/// ]),
777778/// }]),
778779/// }],
779780/// };
780781///
781782/// let result = parse_user_native_string(xml).unwrap();
783+ ///
782784/// assert_eq!(result, expected);
783785/// ```
784786pub fn parse_user_native_string ( xml_str : & str ) -> Result < UserNative , Error > {
0 commit comments