pub struct UnityImage {
pub name: String,
pub uri: Option<String>,
pub bytes: Option<Vec<u8>>,
}Expand description
A glTF image entry.
Fields§
§name: StringThe image name. Falls back to the image index as a string if unnamed.
uri: Option<String>The URI of the image, if it references an external file.
None for buffer-view-embedded images (e.g. GLB).
bytes: Option<Vec<u8>>The raw encoded image bytes (PNG, JPEG, …) for buffer-view-embedded images.
None when the image is URI-based.
Auto Trait Implementations§
impl Freeze for UnityImage
impl RefUnwindSafe for UnityImage
impl Send for UnityImage
impl Sync for UnityImage
impl Unpin for UnityImage
impl UnsafeUnpin for UnityImage
impl UnwindSafe for UnityImage
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