i3f 0.0.3

A library for IIIF API, including Image, Presentation.
Documentation
/// iiif 处理结果
#[derive(Debug)]
pub struct ProcessResult {
    pub content_type: String,
    pub data: Vec<u8>,
}

/// ProcessResult 实现
impl ProcessResult {
    /// 创建新的 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]);
    }
}