pub trait ObjectAPI {
Show 17 methods
// Required methods
fn copy_object(
&self,
input: &CopyObjectInput,
) -> Result<CopyObjectOutput, TosError>;
fn delete_object(
&self,
input: &DeleteObjectInput,
) -> Result<DeleteObjectOutput, TosError>;
fn delete_multi_objects(
&self,
input: &DeleteMultiObjectsInput,
) -> Result<DeleteMultiObjectsOutput, TosError>;
fn get_object(
&self,
input: &GetObjectInput,
) -> Result<GetObjectOutput, TosError>;
fn get_object_to_file(
&self,
input: &GetObjectToFileInput,
) -> Result<GetObjectToFileOutput, TosError>;
fn get_object_acl(
&self,
input: &GetObjectACLInput,
) -> Result<GetObjectACLOutput, TosError>;
fn head_object(
&self,
input: &HeadObjectInput,
) -> Result<HeadObjectOutput, TosError>;
fn append_object<B>(
&self,
input: &AppendObjectInput<B>,
) -> Result<AppendObjectOutput, TosError>
where B: Read + Send + 'static;
fn append_object_from_buffer(
&self,
input: &AppendObjectFromBufferInput,
) -> Result<AppendObjectOutput, TosError>;
fn list_objects(
&self,
input: &ListObjectsInput,
) -> Result<ListObjectsOutput, TosError>;
fn list_objects_type2(
&self,
input: &ListObjectsType2Input,
) -> Result<ListObjectsType2Output, TosError>;
fn list_object_versions(
&self,
input: &ListObjectVersionsInput,
) -> Result<ListObjectVersionsOutput, TosError>;
fn put_object<B>(
&self,
input: &PutObjectInput<B>,
) -> Result<PutObjectOutput, TosError>
where B: Read + Send + 'static;
fn put_object_from_buffer(
&self,
input: &PutObjectFromBufferInput,
) -> Result<PutObjectOutput, TosError>;
fn put_object_from_file(
&self,
input: &PutObjectFromFileInput,
) -> Result<PutObjectOutput, TosError>;
fn put_object_acl(
&self,
input: &PutObjectACLInput,
) -> Result<PutObjectACLOutput, TosError>;
fn set_object_meta(
&self,
input: &SetObjectMetaInput,
) -> Result<SetObjectMetaOutput, TosError>;
}Required Methods§
fn copy_object( &self, input: &CopyObjectInput, ) -> Result<CopyObjectOutput, TosError>
fn delete_object( &self, input: &DeleteObjectInput, ) -> Result<DeleteObjectOutput, TosError>
fn delete_multi_objects( &self, input: &DeleteMultiObjectsInput, ) -> Result<DeleteMultiObjectsOutput, TosError>
fn get_object( &self, input: &GetObjectInput, ) -> Result<GetObjectOutput, TosError>
fn get_object_to_file( &self, input: &GetObjectToFileInput, ) -> Result<GetObjectToFileOutput, TosError>
fn get_object_acl( &self, input: &GetObjectACLInput, ) -> Result<GetObjectACLOutput, TosError>
fn head_object( &self, input: &HeadObjectInput, ) -> Result<HeadObjectOutput, TosError>
fn append_object<B>( &self, input: &AppendObjectInput<B>, ) -> Result<AppendObjectOutput, TosError>
fn append_object_from_buffer( &self, input: &AppendObjectFromBufferInput, ) -> Result<AppendObjectOutput, TosError>
fn list_objects( &self, input: &ListObjectsInput, ) -> Result<ListObjectsOutput, TosError>
👎Deprecated
fn list_objects_type2( &self, input: &ListObjectsType2Input, ) -> Result<ListObjectsType2Output, TosError>
fn list_object_versions( &self, input: &ListObjectVersionsInput, ) -> Result<ListObjectVersionsOutput, TosError>
fn put_object<B>( &self, input: &PutObjectInput<B>, ) -> Result<PutObjectOutput, TosError>
fn put_object_from_buffer( &self, input: &PutObjectFromBufferInput, ) -> Result<PutObjectOutput, TosError>
fn put_object_from_file( &self, input: &PutObjectFromFileInput, ) -> Result<PutObjectOutput, TosError>
fn put_object_acl( &self, input: &PutObjectACLInput, ) -> Result<PutObjectACLOutput, TosError>
fn set_object_meta( &self, input: &SetObjectMetaInput, ) -> Result<SetObjectMetaOutput, TosError>
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.