1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
//! Object operations use crate::Result; /// Object with metadata #[derive(Debug, Clone)] pub struct Object { pub key: String, pub body: Vec<u8>, pub content_type: String, } impl Object { pub fn new(key: String, body: Vec<u8>, content_type: String) -> Self { Self { key, body, content_type, } } }