pub trait ReadImageProcessor: Send + Sync {
// Required method
fn process(
&self,
bytes: &[u8],
mime_type: &str,
auto_resize: bool,
) -> Result<ProcessedImage, String>;
}Expand description
Optional image-conversion seam. Mirrors TS ReadImageProcessor.
Required Methods§
fn process( &self, bytes: &[u8], mime_type: &str, auto_resize: bool, ) -> Result<ProcessedImage, String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".