Skip to content

Commit

Permalink
chore(version): Add deprecated Tip
Browse files Browse the repository at this point in the history
deprecated set_next_continuation_token method in decode mod
  • Loading branch information
tu6ge committed Mar 27, 2023
1 parent c2742e2 commit 8c0734e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ all-features = true
members = ["oss_derive"]

[workspace.package]
version = "0.11.2"
version = "0.11.3"
edition = "2021"
license = "MIT"
repository = "https://github.com/tu6ge/oss-rs"
Expand Down
4 changes: 4 additions & 0 deletions src/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ impl<T: PointerFamily, Item: RefineObject<E>, E: ItemError> ObjectList<T, Item,

/// # 返回下一个 continuation_token
/// 用于翻页使用
#[deprecated(
since = "0.12.0",
note = "Option is redundant, replace with next_continuation_token_str"
)]
pub fn next_continuation_token(&self) -> &Option<String> {
&self.next_continuation_token
}
Expand Down
4 changes: 4 additions & 0 deletions src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ where
}

/// 提取翻页信息,有下一页,返回 Some, 否则返回 None
#[deprecated(
since = "0.12.0",
note = "Option is redundant, replace with set_next_continuation_token_str"
)]
fn set_next_continuation_token(&mut self, _token: Option<&str>) -> Result<(), Error> {
Ok(())
}
Expand Down

0 comments on commit 8c0734e

Please sign in to comment.