Better downcast panics (#898)

This commit is contained in:
0HyperCube
2022-12-22 09:27:55 +00:00
committed by Keavon Chambers
parent ef99c91226
commit 5b3c015f71
4 changed files with 18 additions and 23 deletions

View File

@@ -18,7 +18,7 @@ pub enum ImaginateStatus {
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct ImaginateBaseImage {
pub mime: String,
#[serde(rename = "imageData")]
#[cfg_attr(feature = "serde", serde(rename = "imageData"))]
pub image_data: Vec<u8>,
pub size: DVec2,
}