Struct html5_picture::html5::Picture[][src]

pub struct Picture {
    pub sources: Vec<SourceAttributes>,
    pub fallback_uri: String,
}
Expand description

Represents the HTML5 <picture> tag.

Fields

sources: Vec<SourceAttributes>

Contains the <source> tags of the picture.

fallback_uri: String

Specifies the fallback uri of the picture.

Implementations

Collects all information about the image required for the creation of a <picture> tag.

Creates a string that contains the full <picture> tag. It can directly be embedded into a webpage.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.