pub struct MetadataOpfV3 {
pub property: String,
pub content: String,
pub dir: Option<String>,
pub id: Option<String>,
pub refines: Option<String>,
pub scheme: Option<String>,
pub xml_lang: Option<String>,
}Expand description
Represents the EPUB <meta> content inside content.opf file.
content https://www.w3.org/TR/epub-33/#sec-meta-elem
Fields§
§property: StringThe property attribute takes a property data type value that defines the statement made in the expression, and the text content of the element represents the assertion. https://www.w3.org/TR/epub-33/#attrdef-meta-property
content: StringThe content of the metadata tag very much based on what you put in property
dir: Option<String>Specifies the base direction [bidi] of the textual content and attribute values of the carrying element and its descendants. https://www.w3.org/TR/epub-33/#attrdef-dir
id: Option<String>The ID xml of the element, which MUST be unique within the document scope. https://www.w3.org/TR/epub-33/#attrdef-id
refines: Option<String>Establishes an association between the current expression and the element or resource identified by its value. https://www.w3.org/TR/epub-33/#attrdef-refines
scheme: Option<String>The scheme attribute identifies the system or scheme the EPUB creator obtained the element’s value from. https://www.w3.org/TR/epub-33/#attrdef-scheme
xml_lang: Option<String>Specifies the language of the textual content and attribute values of the carrying element and its descendants. https://www.w3.org/TR/epub-33/#attrdef-xml-lang
Implementations§
Source§impl MetadataOpfV3
impl MetadataOpfV3
Sourcepub fn new(property: String, content: String) -> MetadataOpfV3
pub fn new(property: String, content: String) -> MetadataOpfV3
Create instance of MetadataOpfV3
Sourcepub fn add_direction(&mut self, direction: String) -> &mut Self
pub fn add_direction(&mut self, direction: String) -> &mut Self
Add reading direction metadata
Sourcepub fn add_refines(&mut self, refines: String) -> &mut Self
pub fn add_refines(&mut self, refines: String) -> &mut Self
Add refines metadata
Sourcepub fn add_scheme(&mut self, scheme: String) -> &mut Self
pub fn add_scheme(&mut self, scheme: String) -> &mut Self
Add scheme metadata
Sourcepub fn add_xml_lang(&mut self, xml_lang: String) -> &mut Self
pub fn add_xml_lang(&mut self, xml_lang: String) -> &mut Self
Add xml_lang metadata