pub struct MetadataLinkItem {
pub href: String,
pub rel: String,
pub hreflang: Option<String>,
pub id: Option<String>,
pub mime: Option<String>,
pub properties: Option<String>,
pub refines: Option<String>,
}Expand description
Represents a metadata link item in an EPUB publication
The MetadataLinkItem structure represents a link from the publication’s metadata to
external resources. These links are typically used to associate the publication with
external records, alternate editions, or related resources.
Link metadata items are defined in the OPF file using <link> elements in the metadata
section and follow the EPUB 3.0 metadata link specification.
Fields§
§href: StringThe URI of the linked resource
rel: StringThe relationship between this publication and the linked resource
hreflang: Option<String>Optional language of the linked resource
id: Option<String>Optional unique identifier for this link item
Provides an ID that can be used to reference this link from other elements.
mime: Option<String>Optional MIME type of the linked resource
properties: Option<String>Optional properties of this link
Contains space-separated property values that describe characteristics of the link or the linked resource. For example, “onix-3.0” to indicate an ONIX 3.0 record.
refines: Option<String>Optional reference to another metadata item
In EPUB 3.0, links can refine other metadata items. This field contains the ID of the metadata item that this link refines, prefixed with “#”.