Struct kitab::dc::DCMetaData
source · [−]pub struct DCMetaData {
pub title: String,
pub author: String,
pub typ: EntryType,
pub subject: Option<String>,
pub mime: Option<Mime>,
pub language: Option<LanguageIdentifier>,
}
Expand description
Represents the parts of the metadata schema covered by the Dublin Core vocabulary.
Fields
title: String
Title of work represented by media.
Author(s) of work represented by media. Multiple authors may be specified by separating them with comma.
typ: EntryType
Type of work represented by media. Maps to bibtex entry types.
subject: Option<String>
Comma-separated keyword list describing the content.
mime: Option<Mime>
MIME type of the media.
language: Option<LanguageIdentifier>
What language the work represented by this media file is in.
Implementations
sourceimpl DCMetaData
impl DCMetaData
sourcepub fn new(title: &str, author: &str, entry_type: EntryType) -> DCMetaData
pub fn new(title: &str, author: &str, entry_type: EntryType) -> DCMetaData
Creates a new Dublin Core metadata part with minimal data.
title
, author
and entry_type
map to corresponding DCMetaData
properties.
Auto Trait Implementations
impl RefUnwindSafe for DCMetaData
impl Send for DCMetaData
impl Sync for DCMetaData
impl Unpin for DCMetaData
impl UnwindSafe for DCMetaData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more