pub struct Metadata<'a> {
pub title: Option<Cow<'a, str>>,
pub authors: Vec<Cow<'a, str>>,
pub date: Option<Cow<'a, str>>,
pub language: Option<Cow<'a, str>>,
pub page_count: Option<u32>,
pub word_count: Option<u64>,
pub source_format: Option<FormatId>,
pub encoding: Option<Cow<'a, str>>,
pub custom: Vec<(Cow<'a, str>, Cow<'a, str>)>,
}Fields§
§title: Option<Cow<'a, str>>§date: Option<Cow<'a, str>>§language: Option<Cow<'a, str>>§page_count: Option<u32>§word_count: Option<u64>§source_format: Option<FormatId>§encoding: Option<Cow<'a, str>>§custom: Vec<(Cow<'a, str>, Cow<'a, str>)>Format-specific extras, kept out of the shared model.
Trait Implementations§
impl<'a> StructuralPartialEq for Metadata<'a>
Auto Trait Implementations§
impl<'a> Freeze for Metadata<'a>
impl<'a> RefUnwindSafe for Metadata<'a>
impl<'a> Send for Metadata<'a>
impl<'a> Sync for Metadata<'a>
impl<'a> Unpin for Metadata<'a>
impl<'a> UnsafeUnpin for Metadata<'a>
impl<'a> UnwindSafe for Metadata<'a>
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