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.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more