pub struct OaSubsetInfo {
pub pmcid: String,
pub is_oa_subset: bool,
pub citation: Option<String>,
pub license: Option<String>,
pub retracted: bool,
pub download_link: Option<String>,
pub download_format: Option<String>,
pub updated: Option<String>,
pub error_code: Option<String>,
pub error_message: Option<String>,
}Expand description
Information about OA (Open Access) subset availability for a PMC article
The OA subset contains articles with programmatic access to full-text XML. Not all PMC articles are in the OA subset - some publishers restrict programmatic access even though the article may be viewable on the PMC website.
Fields§
§pmcid: StringPMC ID (e.g., “PMC7906746”)
is_oa_subset: boolWhether the article is in the OA subset
citation: Option<String>Citation string (if available)
license: Option<String>License type (if available)
retracted: boolWhether the article is retracted
download_link: Option<String>Download link for tar.gz package (if available)
download_format: Option<String>Format of the download (e.g., “tgz”, “pdf”)
updated: Option<String>Last updated timestamp for the download
error_code: Option<String>Error code if not in OA subset
error_message: Option<String>Error message if not in OA subset
Implementations§
Source§impl OaSubsetInfo
impl OaSubsetInfo
Sourcepub fn available(pmcid: String) -> OaSubsetInfo
pub fn available(pmcid: String) -> OaSubsetInfo
Create a new OaSubsetInfo for an article in the OA subset
Sourcepub fn not_available(
pmcid: String,
error_code: String,
error_message: String,
) -> OaSubsetInfo
pub fn not_available( pmcid: String, error_code: String, error_message: String, ) -> OaSubsetInfo
Create a new OaSubsetInfo for an article NOT in the OA subset
Trait Implementations§
Source§impl Clone for OaSubsetInfo
impl Clone for OaSubsetInfo
Source§fn clone(&self) -> OaSubsetInfo
fn clone(&self) -> OaSubsetInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more