Skip to main content

Microformat

Type Alias Microformat 

Source
pub type Microformat = Item;
Expand description

Alias for Item, representing a parsed microformat.

Aliased Type§

pub struct Microformat {
    pub type: Vec<Class>,
    pub properties: BTreeMap<String, Vec<PropertyValue>>,
    pub children: Items,
    pub id: Option<String>,
    pub lang: Option<String>,
    pub value: Option<ValueKind>,
}

Fields§

§type: Vec<Class>

The microformat types (e.g., h-entry, h-card).

§properties: BTreeMap<String, Vec<PropertyValue>>

The properties of this item.

§children: Items

Child items nested within this item.

§id: Option<String>

The HTML id attribute of the element.

§lang: Option<String>

The language of this item.

§value: Option<ValueKind>

The value property for value-class-pattern items.