#[derive(Debug)]
pub struct ProcessResult {
pub content_type: String,
pub data: Vec<u8>,
}
impl ProcessResult {
pub fn new(content_type: String, data: Vec<u8>) -> Self {
Self { content_type, data }
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_process_result() {
let result = ProcessResult::new("image/jpeg".to_string(), vec![1, 2, 3]);
assert_eq!(result.content_type, "image/jpeg");
assert_eq!(result.data, vec![1, 2, 3]);
}
}