diff --git a/core/src/types/capability.rs b/core/src/types/capability.rs index a10dd9b4b250..405ff66e0712 100644 --- a/core/src/types/capability.rs +++ b/core/src/types/capability.rs @@ -128,10 +128,10 @@ pub struct Capability { pub write_with_content_disposition: bool, /// Indicates if Cache-Control can be specified during write operations. pub write_with_cache_control: bool, - /// Indicates if conditional write operations using If-None-Match are supported. - pub write_with_if_none_match: bool, /// Indicates if conditional write operations using If-Match are supported. pub write_with_if_match: bool, + /// Indicates if conditional write operations using If-None-Match are supported. + pub write_with_if_none_match: bool, /// Indicates if write operations can be conditional on object non-existence. pub write_with_if_not_exists: bool, /// Indicates if custom user metadata can be attached during write operations. diff --git a/core/src/types/operator/operator_futures.rs b/core/src/types/operator/operator_futures.rs index b0509254dafd..4ce296f748ff 100644 --- a/core/src/types/operator/operator_futures.rs +++ b/core/src/types/operator/operator_futures.rs @@ -323,16 +323,16 @@ impl>> FutureWrite { self.map(|(args, options, bs)| (args.with_executor(executor), options, bs)) } - /// Set the If-None-Match for this operation. - pub fn if_none_match(self, s: &str) -> Self { - self.map(|(args, options, bs)| (args.with_if_none_match(s), options, bs)) - } - /// Set the If-Match for this operation. pub fn if_match(self, s: &str) -> Self { self.map(|(args, options, bs)| (args.with_if_match(s), options, bs)) } + /// Set the If-None-Match for this operation. + pub fn if_none_match(self, s: &str) -> Self { + self.map(|(args, options, bs)| (args.with_if_none_match(s), options, bs)) + } + /// Set the If-Not-Exist for this operation. pub fn if_not_exists(self, b: bool) -> Self { self.map(|(args, options, bs)| (args.with_if_not_exists(b), options, bs))