Skip to content

Commit

Permalink
chore: another order
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank-III committed Nov 27, 2024
1 parent 5ee6881 commit 87a9634
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions core/src/types/capability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 5 additions & 5 deletions core/src/types/operator/operator_futures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,16 +323,16 @@ impl<F: Future<Output = Result<()>>> FutureWrite<F> {
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))
Expand Down

0 comments on commit 87a9634

Please sign in to comment.