pub struct Metadata {Show 19 fields
pub generator: String,
pub title: String,
pub description: String,
pub subject: String,
pub keyword: String,
pub initial_creator: String,
pub creator: String,
pub printed_by: String,
pub creation_date: Option<NaiveDateTime>,
pub date: Option<NaiveDateTime>,
pub print_date: Option<NaiveDateTime>,
pub language: String,
pub editing_cycles: u32,
pub editing_duration: Duration,
pub template: MetaTemplate,
pub auto_reload: MetaAutoReload,
pub hyperlink_behaviour: MetaHyperlinkBehaviour,
pub document_statistics: MetaDocumentStatistics,
pub user_defined: Vec<MetaUserDefined>,
}Expand description
Metadata
Fields§
§generator: StringThe meta:generator element contains a string that identifies the OpenDocument producer that was used to create or last modify the document. This string should match the definition for user-agents in the HTTP protocol as specified in section 14.43 of RFC2616. The generator string should allow OpenDocument consumers to distinguish between all released versions of a producer. Note: Release versions of a producer could be distinguished based on build identifiers or patch-level information. If an OpenDocument producer that creates a document cannot provide an identifier string, the producer shall not export this element. If a producer stores a modified document created by another producer cannot provide a unique identifier, it shall not export the original identifier belonging to the producer that created the document.
title: StringThe dc:title element specifies the title of a document
description: StringThe dc:description element contains a description of a document.
subject: StringThe dc:subject element specifies the subject of a document
keyword: StringThe meta:keyword element contains a keyword pertaining to a document.
initial_creator: StringThe meta:initial-creator element specifies the name of the initial creator of a document
creator: StringThe dc:creator element specifies the name of the person who last modified a document, who created an annotation, who authored a change .
printed_by: StringThe meta:printed-by element specifies the name of the last person who printed a document.
creation_date: Option<NaiveDateTime>The meta:creation-date element specifies the date and time when a document was created.
date: Option<NaiveDateTime>The dc:date element specifies the date and time when the document was last modified, when an annotation was created, when a change was made.
print_date: Option<NaiveDateTime>The meta:print-date element specifies the date and time when a document was last printed.
language: StringThe dc:language element specifies the default language of a document
editing_cycles: u32The meta:editing-cycles element specifies the number of times a document has been edited. When a document is created, this value is set to 1. Each time a document is saved, the editing-cycles number is incremented by 1.
editing_duration: DurationThe meta:editing-duration element specifies the total time spent editing a document.
template: MetaTemplateThe meta:template element specifies an IRI for the document template that was used to create a document. The IRI is specified using the xlink:href attribute.
auto_reload: MetaAutoReloadThe meta:auto-reload element specifies whether a document is reloaded or replaced by another document after a specified period of time has elapsed.
hyperlink_behaviour: MetaHyperlinkBehaviourThe meta:hyperlink-behaviour element specifies the default behavior for hyperlinks in a document.
document_statistics: MetaDocumentStatisticsThe meta:document-statistic element represents statistics about a document.
user_defined: Vec<MetaUserDefined>The meta:user-defined element specifies any additional user-defined metadata for a document.
Trait Implementations§
Source§impl GetSize for Metadata
impl GetSize for Metadata
Source§fn get_heap_size(&self) -> usize
fn get_heap_size(&self) -> usize
Source§fn get_stack_size() -> usize
fn get_stack_size() -> usize
Source§fn get_heap_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
fn get_heap_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
tracker. Read moreSource§fn get_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
fn get_size_with_tracker<T>(&self, tracker: T) -> (usize, T)where
T: GetSizeTracker,
tracker. Read more