Trait ObjectAPI

Source
pub trait ObjectAPI {
    // Required methods
    fn list_object<'life0, 'async_trait, S, H, R>(
        &'life0 self,
        headers: H,
        resources: R,
    ) -> Pin<Box<dyn Future<Output = Result<ListBucketResult, OSSError>> + Send + 'async_trait>>
       where S: AsRef<str> + 'async_trait,
             H: Into<Option<HashMap<S, S>>> + Send + 'async_trait,
             R: Into<Option<HashMap<S, Option<S>>>> + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
    fn list_object_v2<'life0, 'async_trait, S>(
        &'life0 self,
        prefix: Option<S>,
        delimiter: Option<S>,
    ) -> Pin<Box<dyn Future<Output = Result<ListBucketResult, OSSError>> + Send + 'async_trait>>
       where S: AsRef<str> + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
    fn get_object<'life0, 'async_trait, S1, S2, H, R>(
        &'life0 self,
        object_name: S1,
        headers: H,
        resources: R,
    ) -> Pin<Box<dyn Future<Output = Result<Bytes, OSSError>> + Send + 'async_trait>>
       where S1: AsRef<str> + Send + 'async_trait,
             S2: AsRef<str> + Send + 'async_trait,
             H: Into<Option<HashMap<S2, S2>>> + Send + 'async_trait,
             R: Into<Option<HashMap<S2, Option<S2>>>> + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
    fn put_object<'life0, 'life1, 'async_trait, S1, S2, H, R>(
        &'life0 self,
        buf: &'life1 [u8],
        object_name: S1,
        headers: H,
        resources: R,
    ) -> Pin<Box<dyn Future<Output = Result<(), OSSError>> + Send + 'async_trait>>
       where S1: AsRef<str> + Send + 'async_trait,
             S2: AsRef<str> + Send + 'async_trait,
             H: Into<Option<HashMap<S2, S2>>> + Send + 'async_trait,
             R: Into<Option<HashMap<S2, Option<S2>>>> + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn append_object<'life0, 'life1, 'async_trait, S1, S2, H, R>(
        &'life0 self,
        buf: &'life1 [u8],
        object_name: S1,
        headers: H,
        resources: R,
    ) -> Pin<Box<dyn Future<Output = Result<Option<u64>, OSSError>> + Send + 'async_trait>>
       where S1: AsRef<str> + Send + 'async_trait,
             S2: AsRef<str> + Send + 'async_trait,
             H: Into<Option<HashMap<S2, S2>>> + Send + 'async_trait,
             R: Into<Option<HashMap<S2, Option<S2>>>> + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn copy_object_from_object<'life0, 'async_trait, S1, S2, S3, H, R>(
        &'life0 self,
        src: S1,
        dest: S2,
        headers: H,
        resources: R,
    ) -> Pin<Box<dyn Future<Output = Result<(), OSSError>> + Send + 'async_trait>>
       where S1: AsRef<str> + Send + 'async_trait,
             S2: AsRef<str> + Send + 'async_trait,
             S3: AsRef<str> + Send + 'async_trait,
             H: Into<Option<HashMap<S3, S3>>> + Send + 'async_trait,
             R: Into<Option<HashMap<S3, Option<S3>>>> + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_object<'life0, 'async_trait, S>(
        &'life0 self,
        object_name: S,
    ) -> Pin<Box<dyn Future<Output = Result<(), OSSError>> + Send + 'async_trait>>
       where S: AsRef<str> + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
    fn head_object<'life0, 'async_trait, S>(
        &'life0 self,
        object_name: S,
    ) -> Pin<Box<dyn Future<Output = Result<ObjectMeta, OSSError>> + Send + 'async_trait>>
       where S: AsRef<str> + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn list_object<'life0, 'async_trait, S, H, R>( &'life0 self, headers: H, resources: R, ) -> Pin<Box<dyn Future<Output = Result<ListBucketResult, OSSError>> + Send + 'async_trait>>
where S: AsRef<str> + 'async_trait, H: Into<Option<HashMap<S, S>>> + Send + 'async_trait, R: Into<Option<HashMap<S, Option<S>>>> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Source

fn list_object_v2<'life0, 'async_trait, S>( &'life0 self, prefix: Option<S>, delimiter: Option<S>, ) -> Pin<Box<dyn Future<Output = Result<ListBucketResult, OSSError>> + Send + 'async_trait>>
where S: AsRef<str> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_object<'life0, 'async_trait, S1, S2, H, R>( &'life0 self, object_name: S1, headers: H, resources: R, ) -> Pin<Box<dyn Future<Output = Result<Bytes, OSSError>> + Send + 'async_trait>>
where S1: AsRef<str> + Send + 'async_trait, S2: AsRef<str> + Send + 'async_trait, H: Into<Option<HashMap<S2, S2>>> + Send + 'async_trait, R: Into<Option<HashMap<S2, Option<S2>>>> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Source

fn put_object<'life0, 'life1, 'async_trait, S1, S2, H, R>( &'life0 self, buf: &'life1 [u8], object_name: S1, headers: H, resources: R, ) -> Pin<Box<dyn Future<Output = Result<(), OSSError>> + Send + 'async_trait>>
where S1: AsRef<str> + Send + 'async_trait, S2: AsRef<str> + Send + 'async_trait, H: Into<Option<HashMap<S2, S2>>> + Send + 'async_trait, R: Into<Option<HashMap<S2, Option<S2>>>> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn append_object<'life0, 'life1, 'async_trait, S1, S2, H, R>( &'life0 self, buf: &'life1 [u8], object_name: S1, headers: H, resources: R, ) -> Pin<Box<dyn Future<Output = Result<Option<u64>, OSSError>> + Send + 'async_trait>>
where S1: AsRef<str> + Send + 'async_trait, S2: AsRef<str> + Send + 'async_trait, H: Into<Option<HashMap<S2, S2>>> + Send + 'async_trait, R: Into<Option<HashMap<S2, Option<S2>>>> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn copy_object_from_object<'life0, 'async_trait, S1, S2, S3, H, R>( &'life0 self, src: S1, dest: S2, headers: H, resources: R, ) -> Pin<Box<dyn Future<Output = Result<(), OSSError>> + Send + 'async_trait>>
where S1: AsRef<str> + Send + 'async_trait, S2: AsRef<str> + Send + 'async_trait, S3: AsRef<str> + Send + 'async_trait, H: Into<Option<HashMap<S3, S3>>> + Send + 'async_trait, R: Into<Option<HashMap<S3, Option<S3>>>> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Source

fn delete_object<'life0, 'async_trait, S>( &'life0 self, object_name: S, ) -> Pin<Box<dyn Future<Output = Result<(), OSSError>> + Send + 'async_trait>>
where S: AsRef<str> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Source

fn head_object<'life0, 'async_trait, S>( &'life0 self, object_name: S, ) -> Pin<Box<dyn Future<Output = Result<ObjectMeta, OSSError>> + Send + 'async_trait>>
where S: AsRef<str> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a> ObjectAPI for OSS<'a>