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§
Trait Implementations§
Source§impl Clone for OaSubsetInfo
impl Clone for OaSubsetInfo
Source§fn clone(&self) -> OaSubsetInfo
fn clone(&self) -> OaSubsetInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OaSubsetInfo
impl Debug for OaSubsetInfo
Source§impl<'de> Deserialize<'de> for OaSubsetInfo
impl<'de> Deserialize<'de> for OaSubsetInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OaSubsetInfo
impl RefUnwindSafe for OaSubsetInfo
impl Send for OaSubsetInfo
impl Sync for OaSubsetInfo
impl Unpin for OaSubsetInfo
impl UnwindSafe for OaSubsetInfo
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