pub struct Reference {
pub identifier: String,
pub group: Option<String>,
pub reference_type: ReferenceType,
pub metadata: Option<Value>,
pub text: ReferenceText,
pub source: Option<Value>,
pub parent_reference: Option<String>,
}Expand description
Reference/citation.
A bibliographic reference that supports claims in the article. References have identifiers that link them to citations in the text.
§Reference Types
web- Web-based sourcesbook- Book sourcestext- Plain text (no template)
§Example
ⓘ
Reference {
identifier: "cite_note-36".to_string(),
group: None,
reference_type: ReferenceType::Web,
metadata: Some(json!({
"title": "Josephine Baker: Image & Icon",
"url": "http://www.jazzreview.com/...",
})),
text: ReferenceText { ... },
source: Some(json!({ ... })),
parent_reference: None,
}Fields§
§identifier: StringReference identifier (links to citations)
group: Option<String>Reference group (for grouped references)
reference_type: ReferenceTypeReference type
metadata: Option<Value>Reference metadata (author, title, URL, etc.)
text: ReferenceTextReference text content
source: Option<Value>Reference source information
parent_reference: Option<String>Parent reference identifier (for nested references)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Reference
impl<'de> Deserialize<'de> for Reference
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 StructuralPartialEq for Reference
Auto Trait Implementations§
impl Freeze for Reference
impl RefUnwindSafe for Reference
impl Send for Reference
impl Sync for Reference
impl Unpin for Reference
impl UnsafeUnpin for Reference
impl UnwindSafe for Reference
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