pub struct Image<'a> {
pub name: Option<Cow<'a, str>>,
pub uri: Option<Cow<'a, str>>,
pub buffer_view: Option<Idx<BufferView<'static>>>,
pub mime_type: Option<MimeType<'a>>,
pub extensions: Option<Extensions<'a>>,
pub extras: Option<Extras<'a>>,
}Expand description
Image data used to create a texture.
Fields§
§name: Option<Cow<'a, str>>The user-defined name of this object.
uri: Option<Cow<'a, str>>The URI (or IRI) of the image.
buffer_view: Option<Idx<BufferView<'static>>>The index of the buffer view.
mime_type: Option<MimeType<'a>>The image’s media type.
extensions: Option<Extensions<'a>>§extras: Option<Extras<'a>>Implementations§
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Image<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Image<'a>
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<'a> Freeze for Image<'a>
impl<'a> RefUnwindSafe for Image<'a>
impl<'a> Send for Image<'a>
impl<'a> Sync for Image<'a>
impl<'a> Unpin for Image<'a>
impl<'a> UnsafeUnpin for Image<'a>
impl<'a> UnwindSafe for Image<'a>
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