pub struct PmcArticle {
pub article_type: Option<String>,
pub front: Front,
pub body: Option<Body>,
pub back: Option<Back>,
pub supplementary_materials: Vec<SupplementaryMaterial>,
pub data_availability: Option<String>,
}Expand description
PMC full-text article.
Maps to JATS <article>: front, body?, back?.
DTD: https://jats.nlm.nih.gov/archiving/tag-library/1.4/element/article.html
Fields§
§article_type: Option<String>Article type. From <article article-type="..."> attribute.
front: FrontFront matter. From <front>.
body: Option<Body>Article body. From <body>. None when the article has no body
(e.g., metadata-only records).
back: Option<Back>Back matter. From <back>. None when the article has no back matter.
supplementary_materials: Vec<SupplementaryMaterial>Supplementary materials. From <supplementary-material>, collected
from the entire document (<body> sections, <back>, or <floats-group>).
data_availability: Option<String>Data availability statement. From <sec sec-type="data-availability">
or <notes notes-type="data-availability">, wherever it appears.
Implementations§
Source§impl PmcArticle
impl PmcArticle
Authors.
Sourcepub fn journal(&self) -> &JournalMeta
pub fn journal(&self) -> &JournalMeta
Journal metadata.
Sourcepub fn pub_dates(&self) -> &[PublicationDate]
pub fn pub_dates(&self) -> &[PublicationDate]
Publication dates.
Sourcepub fn categories(&self) -> &[String]
pub fn categories(&self) -> &[String]
Subject categories.
Sourcepub fn funding(&self) -> &[FundingInfo]
pub fn funding(&self) -> &[FundingInfo]
Funding information.
Sourcepub fn history(&self) -> &[HistoryDate]
pub fn history(&self) -> &[HistoryDate]
Publication history dates.
Sourcepub fn abstract_text(&self) -> Option<&str>
pub fn abstract_text(&self) -> Option<&str>
Text of the main abstract (first <abstract>), if present.
Sourcepub fn license_text(&self) -> Option<&str>
pub fn license_text(&self) -> Option<&str>
License text, if present.
Sourcepub fn license_url(&self) -> Option<&str>
pub fn license_url(&self) -> Option<&str>
License URL, if present.
Sourcepub fn references(&self) -> &[Reference]
pub fn references(&self) -> &[Reference]
References (empty slice when the article has no back matter).
Sourcepub fn acknowledgments(&self) -> Option<&str>
pub fn acknowledgments(&self) -> Option<&str>
Acknowledgments, if present.
Sourcepub fn conflict_of_interest(&self) -> Option<&str>
pub fn conflict_of_interest(&self) -> Option<&str>
Conflict of interest statement, if present.
Sourcepub fn get_tar_files(&self) -> Vec<&SupplementaryMaterial>
pub fn get_tar_files(&self) -> Vec<&SupplementaryMaterial>
Get tar files from supplementary materials.
Sourcepub fn get_archive_files(&self) -> Vec<&SupplementaryMaterial>
pub fn get_archive_files(&self) -> Vec<&SupplementaryMaterial>
Get all archive files from supplementary materials.
Sourcepub fn has_supplementary_materials(&self) -> bool
pub fn has_supplementary_materials(&self) -> bool
Check if the article has supplementary materials.
Sourcepub fn get_supplementary_materials_by_type(
&self,
content_type: &str,
) -> Vec<&SupplementaryMaterial>
pub fn get_supplementary_materials_by_type( &self, content_type: &str, ) -> Vec<&SupplementaryMaterial>
Get supplementary materials by content type.
Trait Implementations§
Source§impl Clone for PmcArticle
impl Clone for PmcArticle
Source§fn clone(&self) -> PmcArticle
fn clone(&self) -> PmcArticle
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PmcArticle
impl Debug for PmcArticle
Source§impl<'de> Deserialize<'de> for PmcArticle
impl<'de> Deserialize<'de> for PmcArticle
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PmcArticle, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PmcArticle, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for PmcArticle
impl PartialEq for PmcArticle
Source§impl Serialize for PmcArticle
impl Serialize for PmcArticle
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for PmcArticle
Auto Trait Implementations§
impl Freeze for PmcArticle
impl RefUnwindSafe for PmcArticle
impl Send for PmcArticle
impl Sync for PmcArticle
impl Unpin for PmcArticle
impl UnwindSafe for PmcArticle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more