pub enum ResourceKind {
File,
Url,
Doi,
Pmid,
Pmcid,
Isbn,
Issn,
Eprint,
Arxiv,
Crossref,
}Expand description
Common resource or identifier field kind.
Variants§
File
Local file attachment field.
Url
URL field.
Doi
DOI field.
Pmid
PubMed identifier.
Pmcid
PubMed Central identifier.
Isbn
ISBN field.
Issn
ISSN field.
Eprint
Generic eprint field.
Arxiv
arXiv identifier.
Crossref
Cross-reference citation key.
Implementations§
Trait Implementations§
Source§impl Clone for ResourceKind
impl Clone for ResourceKind
Source§fn clone(&self) -> ResourceKind
fn clone(&self) -> ResourceKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResourceKind
impl Debug for ResourceKind
Source§impl Hash for ResourceKind
impl Hash for ResourceKind
Source§impl PartialEq for ResourceKind
impl PartialEq for ResourceKind
Source§fn eq(&self, other: &ResourceKind) -> bool
fn eq(&self, other: &ResourceKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ResourceKind
impl Eq for ResourceKind
impl StructuralPartialEq for ResourceKind
Auto Trait Implementations§
impl Freeze for ResourceKind
impl RefUnwindSafe for ResourceKind
impl Send for ResourceKind
impl Sync for ResourceKind
impl Unpin for ResourceKind
impl UnsafeUnpin for ResourceKind
impl UnwindSafe for ResourceKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more