Trait huaweicloud_sdk_rust_obs::object::ObjectTrait
source · pub trait ObjectTrait {
// Required methods
fn put_object<'life0, 'life1, 'async_trait, S>(
&'life0 self,
bucket: S,
key: S,
object: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<(), ObsError>> + Send + 'async_trait>>
where S: 'async_trait + AsRef<str> + Send,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn copy_object<'life0, 'async_trait, S1, S2, S3>(
&'life0 self,
bucket: S1,
src: S2,
dest: S3
) -> Pin<Box<dyn Future<Output = Result<CopyObjectResult, ObsError>> + Send + 'async_trait>>
where S1: AsRef<str> + Send + 'async_trait,
S2: AsRef<str> + Send + 'async_trait,
S3: AsRef<str> + Send + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
fn delete_object<'life0, 'async_trait, S>(
&'life0 self,
bucket: S,
key: S
) -> Pin<Box<dyn Future<Output = Result<(), ObsError>> + Send + 'async_trait>>
where S: 'async_trait + AsRef<str> + Send,
Self: 'async_trait,
'life0: 'async_trait;
fn get_object<'life0, 'async_trait, S>(
&'life0 self,
bucket: S,
key: S
) -> Pin<Box<dyn Future<Output = Result<Bytes, ObsError>> + Send + 'async_trait>>
where S: 'async_trait + AsRef<str> + Send,
Self: 'async_trait,
'life0: 'async_trait;
fn get_object_metadata<'life0, 'async_trait, S>(
&'life0 self,
bucket: S,
key: S
) -> Pin<Box<dyn Future<Output = Result<ObjectMeta, ObsError>> + Send + 'async_trait>>
where S: 'async_trait + AsRef<str> + Send,
Self: 'async_trait,
'life0: 'async_trait;
}
Required Methods§
sourcefn put_object<'life0, 'life1, 'async_trait, S>(
&'life0 self,
bucket: S,
key: S,
object: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<(), ObsError>> + Send + 'async_trait>>where
S: 'async_trait + AsRef<str> + Send,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn put_object<'life0, 'life1, 'async_trait, S>( &'life0 self, bucket: S, key: S, object: &'life1 [u8] ) -> Pin<Box<dyn Future<Output = Result<(), ObsError>> + Send + 'async_trait>>where S: 'async_trait + AsRef<str> + Send, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
PUT上传
sourcefn copy_object<'life0, 'async_trait, S1, S2, S3>(
&'life0 self,
bucket: S1,
src: S2,
dest: S3
) -> Pin<Box<dyn Future<Output = Result<CopyObjectResult, ObsError>> + Send + 'async_trait>>where
S1: AsRef<str> + Send + 'async_trait,
S2: AsRef<str> + Send + 'async_trait,
S3: AsRef<str> + Send + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn copy_object<'life0, 'async_trait, S1, S2, S3>( &'life0 self, bucket: S1, src: S2, dest: S3 ) -> Pin<Box<dyn Future<Output = Result<CopyObjectResult, ObsError>> + Send + 'async_trait>>where S1: AsRef<str> + Send + 'async_trait, S2: AsRef<str> + Send + 'async_trait, S3: AsRef<str> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,
复制对象
sourcefn delete_object<'life0, 'async_trait, S>(
&'life0 self,
bucket: S,
key: S
) -> Pin<Box<dyn Future<Output = Result<(), ObsError>> + Send + 'async_trait>>where
S: 'async_trait + AsRef<str> + Send,
Self: 'async_trait,
'life0: 'async_trait,
fn delete_object<'life0, 'async_trait, S>( &'life0 self, bucket: S, key: S ) -> Pin<Box<dyn Future<Output = Result<(), ObsError>> + Send + 'async_trait>>where S: 'async_trait + AsRef<str> + Send, Self: 'async_trait, 'life0: 'async_trait,
删除对象