Struct telegraph_rs::types::NodeElement[][src]

pub struct NodeElement {
    pub tag: String,
    pub attrs: Option<HashMap<String, String>>,
    pub children: Option<Vec<Node>>,
}

This object represents a DOM element node.

Fields

tag: String

Name of the DOM element. Available tags: a, aside, b, blockquote, br, code, em, figcaption, figure, h3, h4, hr, i, iframe, img, li, ol, p, pre, s, strong, u, ul, video.

attrs: Option<HashMap<String, String>>

Optional. Attributes of the DOM element.

Key of object represents name of attribute, value represents value of attribute.

Available attributes: href, src.

children: Option<Vec<Node>>

Optional. List of child nodes for the DOM element.

Trait Implementations

impl Clone for NodeElement[src]

impl Debug for NodeElement[src]

impl<'de> Deserialize<'de> for NodeElement[src]

impl Serialize for NodeElement[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.