#[non_exhaustive]pub enum WorkId {
Doi(Doi),
Arxiv(ArxivId),
Pmid(Pmid),
Pmcid(Pmcid),
OpenAlex(OpenAlexId),
S2Paper(S2PaperId),
CorpusId(CorpusId),
Isbn(Isbn),
Nbk(Nbk),
}Expand description
Any supported work identifier, tagged with its kind.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Doi(Doi)
Arxiv(ArxivId)
Pmid(Pmid)
Pmcid(Pmcid)
OpenAlex(OpenAlexId)
S2Paper(S2PaperId)
CorpusId(CorpusId)
Isbn(Isbn)
Nbk(Nbk)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WorkId
impl<'de> Deserialize<'de> for WorkId
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WorkId
Source§impl From<OpenAlexId> for WorkId
impl From<OpenAlexId> for WorkId
Source§fn from(id: OpenAlexId) -> Self
fn from(id: OpenAlexId) -> Self
Converts to this type from the input type.
Source§impl FromStr for WorkId
impl FromStr for WorkId
Source§impl Ord for WorkId
impl Ord for WorkId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for WorkId
impl PartialOrd for WorkId
impl StructuralPartialEq for WorkId
Auto Trait Implementations§
impl Forget for WorkId
impl Freeze for WorkId
impl RefUnwindSafe for WorkId
impl Send for WorkId
impl Sync for WorkId
impl Unpin for WorkId
impl UnsafeUnpin for WorkId
impl UnwindSafe for WorkId
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