pub struct Image {
pub buffer_view: Option<Index<View>>,
pub mime_type: Option<MimeType>,
pub uri: Option<String>,
pub extensions: Option<Image>,
pub extras: Extras,
}
Expand description
Image data used to create a texture.
Fields§
§buffer_view: Option<Index<View>>
The index of the buffer view that contains the image. Use this instead of the image’s uri property.
mime_type: Option<MimeType>
The image’s MIME type.
uri: Option<String>
The uri of the image. Relative paths are relative to the .gltf file. Instead of referencing an external file, the uri can also be a data-uri. The image format must be jpg or png.
extensions: Option<Image>
Extension specific data.
extras: Extras
Optional application specific data.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Image
impl<'de> Deserialize<'de> for Image
source§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