@@ -614,7 +614,7 @@ pub trait ObjectStore: std::fmt::Display + Send + Sync + Debug + 'static {
614614 ///
615615 /// For more advanced multipart uploads see [`MultipartStore`](multipart::MultipartStore)
616616 async fn put_multipart ( & self , location : & Path ) -> Result < Box < dyn MultipartUpload > > {
617- self . put_multipart_opts ( location, PutMultipartOpts :: default ( ) )
617+ self . put_multipart_opts ( location, PutMultipartOptions :: default ( ) )
618618 . await
619619 }
620620
@@ -627,7 +627,7 @@ pub trait ObjectStore: std::fmt::Display + Send + Sync + Debug + 'static {
627627 async fn put_multipart_opts (
628628 & self ,
629629 location : & Path ,
630- opts : PutMultipartOpts ,
630+ opts : PutMultipartOptions ,
631631 ) -> Result < Box < dyn MultipartUpload > > ;
632632
633633 /// Return the bytes that are stored at the specified location.
@@ -823,7 +823,7 @@ macro_rules! as_ref_impl {
823823 async fn put_multipart_opts(
824824 & self ,
825825 location: & Path ,
826- opts: PutMultipartOpts ,
826+ opts: PutMultipartOptions ,
827827 ) -> Result <Box <dyn MultipartUpload >> {
828828 self . as_ref( ) . put_multipart_opts( location, opts) . await
829829 }
@@ -1234,9 +1234,14 @@ impl From<Attributes> for PutOptions {
12341234 }
12351235}
12361236
1237+ // See <https://github.com/apache/arrow-rs-object-store/issues/339>.
1238+ #[ doc( hidden) ]
1239+ #[ deprecated( note = "Use PutMultipartOptions" , since = "0.13.0" ) ]
1240+ pub type PutMultipartOpts = PutMultipartOptions ;
1241+
12371242/// Options for [`ObjectStore::put_multipart_opts`]
12381243#[ derive( Debug , Clone , Default ) ]
1239- pub struct PutMultipartOpts {
1244+ pub struct PutMultipartOptions {
12401245 /// Provide a [`TagSet`] for this object
12411246 ///
12421247 /// Implementations that don't support object tagging should ignore this
@@ -1254,7 +1259,7 @@ pub struct PutMultipartOpts {
12541259 pub extensions : :: http:: Extensions ,
12551260}
12561261
1257- impl PartialEq < Self > for PutMultipartOpts {
1262+ impl PartialEq < Self > for PutMultipartOptions {
12581263 fn eq ( & self , other : & Self ) -> bool {
12591264 let Self {
12601265 tags,
@@ -1270,9 +1275,9 @@ impl PartialEq<Self> for PutMultipartOpts {
12701275 }
12711276}
12721277
1273- impl Eq for PutMultipartOpts { }
1278+ impl Eq for PutMultipartOptions { }
12741279
1275- impl From < TagSet > for PutMultipartOpts {
1280+ impl From < TagSet > for PutMultipartOptions {
12761281 fn from ( tags : TagSet ) -> Self {
12771282 Self {
12781283 tags,
@@ -1281,7 +1286,7 @@ impl From<TagSet> for PutMultipartOpts {
12811286 }
12821287}
12831288
1284- impl From < Attributes > for PutMultipartOpts {
1289+ impl From < Attributes > for PutMultipartOptions {
12851290 fn from ( attributes : Attributes ) -> Self {
12861291 Self {
12871292 attributes,
0 commit comments