Skip to content

Commit

Permalink
Deprecate version and add versioned
Browse files Browse the repository at this point in the history
  • Loading branch information
geetanshjuneja committed Dec 30, 2024
1 parent 52c96bb commit d67cead
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions core/src/types/operator/operator_futures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,21 @@ impl<F: Future<Output = Result<Vec<Entry>>>> FutureList<F> {
/// by the underlying service
///
/// Default to `false`
#[deprecated = "use versioned instead"]
pub fn version(self, v: bool) -> Self {
self.map(|args| args.with_version(v))
}

/// The version is used to control whether the object versions should be returned.
///
/// - If `false`, list operation will not return with object versions
/// - If `true`, list operation will return with object versions if object versioning is supported
/// by the underlying service
///
/// Default to `false`
pub fn versioned(self, v: bool) -> Self {
self.map(|args| args.with_version(v))
}
}

/// Future that generated by [`Operator::list_with`] or [`Operator::lister_with`].
Expand Down

0 comments on commit d67cead

Please sign in to comment.