pub struct Metadata {
pub title: Option<String>,
pub authors: Vec<Author>,
pub abstract_text: Option<String>,
pub date: Option<String>,
pub venue: Option<String>,
pub citations: Option<i32>,
pub tags: Vec<String>,
pub categories: Vec<String>,
pub keywords: Vec<String>,
pub doi: Option<String>,
pub license: Option<String>,
}Expand description
Document metadata for indexing and retrieval.
Contains bibliographic information, tags, and categorization data for rich document search and filtering.
§Example
use reasonkit::Metadata;
let metadata = Metadata {
title: Some("Understanding AI Reasoning".to_string()),
authors: vec![],
abstract_text: Some("This paper explores...".to_string()),
tags: vec!["ai".to_string(), "reasoning".to_string()],
..Default::default()
};Fields§
§title: Option<String>Document title
List of authors
abstract_text: Option<String>Abstract or summary text
date: Option<String>Publication date (ISO 8601 format)
venue: Option<String>Publication venue (journal, conference, etc.)
citations: Option<i32>Citation count (if available)
User-defined tags
categories: Vec<String>Subject categories
keywords: Vec<String>Extracted keywords
doi: Option<String>Digital Object Identifier
license: Option<String>License information
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Metadata
impl<'de> Deserialize<'de> for Metadata
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
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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