pub trait ObjectAPI {
    fn get_object(
        &self,
        object: &str,
        headers: Option<HashMap<&str, &str>>,
        resources: Option<HashMap<String, Option<String>>>
    ) -> Result<String, Error>; fn put_object_from_file(
        &self,
        file: &str,
        object: &str,
        headers: Option<HashMap<&str, &str>>,
        resources: Option<HashMap<String, Option<String>>>
    ) -> Result<(), Error>; fn put_object_from_buffer(
        &self,
        buf: &[u8],
        object: &str,
        headers: Option<HashMap<&str, &str>>,
        resources: Option<HashMap<String, Option<String>>>
    ) -> Result<(), Error>; fn copy_object_from_object(
        &self,
        src: &str,
        dest: &str,
        headers: Option<HashMap<&str, &str>>,
        resources: Option<HashMap<String, Option<String>>>
    ) -> Result<(), Error>; fn delete_object(&self, object: &str) -> Result<(), Error>; }

Required Methods§

Implementors§