Struct htmlstream::HTMLTag [] [src]

pub struct HTMLTag {
    pub name: String,
    pub html: String,
    pub attributes: String,
    pub state: HTMLTagState,
}

The HTML tag

Examples

let tag = HTMLTag {
    name: "a".to_string(),
    html: "<a href=\"#\">link</a>".to_string(),
    attributes: "href=\"#\"".to_string(),
    state: HTMLTagState::Opening,
};

Fields

name: String html: String attributes: String state: HTMLTagState

Trait Implementations

impl PartialEq for HTMLTag
[src]

fn eq(&self, __arg_0: &HTMLTag) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &HTMLTag) -> bool

This method tests for !=.

impl Debug for HTMLTag
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.