pub struct Survey {
pub settings: Settings,
pub children: Vec<Node>,
pub choices: Vec<ChoiceList>,
pub languages: Vec<String>,
pub entity: Option<Entity>,
pub audit: bool,
pub external_instances: Vec<String>,
pub osm_tags: Vec<ChoiceList>,
}Expand description
A parsed XLSForm survey: settings, a node tree and choice lists.
Fields§
§settings: SettingsForm-level settings.
children: Vec<Node>Ordered top-level nodes.
choices: Vec<ChoiceList>Choice lists from the choices sheet.
languages: Vec<String>Declared languages, in order; empty for a single-language form.
entity: Option<Entity>Entities declaration from the entities sheet, if any.
audit: boolWhether an audit metadata question is present.
external_instances: Vec<String>xml-external instance ids (each loads jr://file/<id>.xml).
OSM tag lists from the osm sheet.
Implementations§
Source§impl Survey
impl Survey
Sourcepub fn choice_list(&self, name: &str) -> Option<&ChoiceList>
pub fn choice_list(&self, name: &str) -> Option<&ChoiceList>
Return the choice list with the given name, if present.
Trait Implementations§
impl Eq for Survey
impl StructuralPartialEq for Survey
Auto Trait Implementations§
impl Forget for Survey
impl Freeze for Surveywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Node>: Freeze,
PhantomData<ChoiceList>: Freeze,
PhantomData<String>: Freeze,
impl Move for Survey
impl RefUnwindSafe for Survey
impl Send for Survey
impl Sync for Surveywhere
RawVecInner: Sync,
impl Unpin for Survey
impl UnsafeUnpin for Surveywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Node>: UnsafeUnpin,
PhantomData<ChoiceList>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Survey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more