#[non_exhaustive]pub struct OpenAccess {
pub is_oa: bool,
pub status: Option<String>,
pub pdf_url: Option<String>,
pub url: Option<String>,
pub license: Option<String>,
pub version: Option<String>,
pub source: Option<String>,
}Expand description
Whether, and where, a work can be read free and legally (as with Unpaywall, whose data OpenAlex carries).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.is_oa: boolFree to read somewhere.
status: Option<String>Unpaywall’s classes: gold, diamond, hybrid, bronze (free on
the publisher’s site without a licence), green (a repository
copy), closed.
pdf_url: Option<String>The best free copy as a PDF.
url: Option<String>The best free copy’s page (HTML full text or a landing page).
license: Option<String>That copy’s licence, e.g. cc-by; none for bronze.
version: Option<String>publishedVersion, acceptedVersion or submittedVersion.
source: Option<String>Who said so: “openalex”, “europepmc”, ….
Trait Implementations§
Source§impl Clone for OpenAccess
impl Clone for OpenAccess
Source§impl Debug for OpenAccess
impl Debug for OpenAccess
Source§impl Default for OpenAccess
impl Default for OpenAccess
Source§impl<'de> Deserialize<'de> for OpenAccess
impl<'de> Deserialize<'de> for OpenAccess
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
impl Eq for OpenAccess
Source§impl PartialEq for OpenAccess
impl PartialEq for OpenAccess
Source§impl Serialize for OpenAccess
impl Serialize for OpenAccess
impl StructuralPartialEq for OpenAccess
Auto Trait Implementations§
impl Forget for OpenAccess
impl Freeze for OpenAccess
impl RefUnwindSafe for OpenAccess
impl Send for OpenAccess
impl Sync for OpenAccess
impl Unpin for OpenAccess
impl UnsafeUnpin for OpenAccess
impl UnwindSafe for OpenAccess
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