pub enum CnFormat {
RdfXml,
Turtle,
CiteProcJson,
CiteProcJsonIsh,
Ris,
BibTex,
CrossrefXml,
CrossrefTdm,
Bibliography {
style: String,
locale: Option<String>,
},
}Expand description
A format crossref will re-serialize a work into.
Every variant here was checked against the live api. application/vnd.datacite.datacite+xml
is deliberately absent: crossref answers it with a 406, since it only
serves formats for the DOIs it registers itself.
Variants§
RdfXml
RDF/XML
Turtle
RDF in the Turtle syntax
CiteProcJson
CSL JSON, the standard citeproc shape
CiteProcJsonIsh
crossref’s older, non-standard citeproc flavour
Ris
RIS, for reference managers
BibTex
BibTeX
CrossrefXml
crossref’s own deposit schema
CrossrefTdm
crossref’s text and data mining schema, which carries the full-text links
Bibliography
a citation formatted for reading, rendered by crossref itself
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CnFormat
impl<'de> Deserialize<'de> for CnFormat
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 CnFormat
impl StructuralPartialEq for CnFormat
Auto Trait Implementations§
impl Freeze for CnFormat
impl RefUnwindSafe for CnFormat
impl Send for CnFormat
impl Sync for CnFormat
impl Unpin for CnFormat
impl UnsafeUnpin for CnFormat
impl UnwindSafe for CnFormat
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.