Struct gltf_json::image::Image [−][src]
pub struct Image {
pub buffer_view: Option<Index<View>>,
pub mime_type: Option<MimeType>,
pub name: Option<String>,
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.
name: Option<String>
Optional user-defined name for this object.
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
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
Auto Trait Implementations
impl RefUnwindSafe for Image
impl UnwindSafe for Image
Blanket Implementations
Mutably borrows from an owned value. Read more