#[non_exhaustive]pub struct Work {Show 16 fields
pub title: Option<String>,
pub authors: Vec<Person>,
pub issued: Option<PartialDate>,
pub work_type: Option<WorkType>,
pub container_title: Option<String>,
pub volume: Option<String>,
pub issue: Option<String>,
pub page: Option<String>,
pub publisher: Option<String>,
pub abstract_text: Option<String>,
pub url: Option<String>,
pub cited_by_count: Option<u64>,
pub updates: Vec<Update>,
pub update_to: Vec<UpdateTo>,
pub open_access: Option<OpenAccess>,
pub other_years: Vec<i16>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.title: Option<String>In byline order. Empty means “not provided”, not “anonymous”.
issued: Option<PartialDate>§work_type: Option<WorkType>§container_title: Option<String>Journal, proceedings or book title.
volume: Option<String>§issue: Option<String>§page: Option<String>§publisher: Option<String>§abstract_text: Option<String>§url: Option<String>Landing page for the work.
cited_by_count: Option<u64>As counted by the providing source; counts differ between sources.
updates: Vec<Update>Retractions, corrections and other editorial notices about the work.
update_to: Vec<UpdateTo>When the work is itself a notice, the works it updates: what an erratum corrects or a retraction notice retracts.
open_access: Option<OpenAccess>Whether, and where, the work can be read free and legally.
other_years: Vec<i16>Years of other editions or versions of the same work, when the provider knows them (a book’s later editions). A citation of any of them is a citation of this work.
Implementations§
Source§impl Work
impl Work
Sourcepub fn retraction(&self) -> Option<&Update>
pub fn retraction(&self) -> Option<&Update>
The first retraction or withdrawal notice, if any.
Sourcepub fn type_as_notice(&mut self)
pub fn type_as_notice(&mut self)
Types a work that is itself a notice (it has update_to) as one:
retraction for retractions and withdrawals, erratum for other
notices, as OpenAlex names them. Registries type notices as plain
articles. New versions are works in their own right and keep theirs.
Sourcepub fn newer_version(&self) -> Option<&WorkId>
pub fn newer_version(&self) -> Option<&WorkId>
The newer version superseding this work, if one is known.