pub struct AvatarImage {
pub mime_type: String,
pub data: Vec<u8>,
}Expand description
Encoded PNG or JPEG bytes stored by the avatar asset.
Images loaded from buffer views, data URIs, and relative file URIs retain their original encoded bytes. Loading rejects missing, empty, malformed, or unsupported sources instead of creating placeholder images.
Fields§
§mime_type: StringMedia type (image/png or image/jpeg).
data: Vec<u8>Original encoded PNG or JPEG bytes.
Implementations§
Trait Implementations§
Source§impl Clone for AvatarImage
impl Clone for AvatarImage
Auto Trait Implementations§
impl Freeze for AvatarImage
impl RefUnwindSafe for AvatarImage
impl Send for AvatarImage
impl Sync for AvatarImage
impl Unpin for AvatarImage
impl UnsafeUnpin for AvatarImage
impl UnwindSafe for AvatarImage
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