pub enum SectionKind {
Show 13 variants
Introduction,
Methods,
Results,
ResultsDiscussion,
Discussion,
Conclusions,
Abstract,
Background,
CaseStudy,
SupplementaryMaterial,
DataAvailability,
Other(String),
Unspecified,
}Expand description
Semantic classification of a JATS <sec sec-type="..."> value.
The DTD leaves @sec-type open-ended, but the NLM/PMC tagging guidelines use
a recognized vocabulary for the standard parts of a research article (IMRaD
and friends). This enum maps those well-known values to type-safe variants so
text-mining pipelines can match on section role without string juggling,
while preserving any unrecognized value via SectionKind::Other.
Use Section::kind to obtain this from a section.
Variants§
Introduction
intro / introduction.
Methods
methods / materials / materials|methods / methods|materials.
Results
results.
ResultsDiscussion
results|discussion.
Discussion
discussion.
Conclusions
conclusions.
Abstract
abstract.
Background
background.
CaseStudy
cases / case / case-report.
SupplementaryMaterial
supplementary-material.
DataAvailability
data-availability.
Other(String)
A sec-type that is present but not one of the recognized values.
Unspecified
No sec-type attribute was present on the section.
Implementations§
Source§impl SectionKind
impl SectionKind
Sourcepub fn from_sec_type(sec_type: Option<&str>) -> Self
pub fn from_sec_type(sec_type: Option<&str>) -> Self
Classify a raw sec-type attribute value.
Matching is case-insensitive and tolerant of the | separator that JATS
uses for combined sections (e.g. materials|methods).
Trait Implementations§
Source§impl Clone for SectionKind
impl Clone for SectionKind
Source§fn clone(&self) -> SectionKind
fn clone(&self) -> SectionKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more