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§
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
Auto Trait Implementations§
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more