We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e25aad1 commit ae5945fCopy full SHA for ae5945f
Cargo.toml
@@ -1,6 +1,6 @@
1
[package]
2
name = "leetcoderustapi"
3
-version = "0.1.6"
+version = "0.1.7"
4
authors = ["Kirill Melkozerov <k.melkozerov@gmail.com>"]
5
edition = "2021"
6
license = "MIT"
README.md
@@ -11,7 +11,7 @@ This Rust library provides a convenient way to interact with the LeetCode API, a
11
Add the following line to your `Cargo.toml` file:
12
```toml
13
[dependencies]
14
-leetcoderustapi = "0.1.6"
+leetcoderustapi = "0.1.7"
15
```
16
## Usage
17
### Authentication
@@ -118,7 +118,7 @@ async fn main() {
118
.await
119
.unwrap();
120
121
- // Rename lists
+ // Rename list
122
user_profile
123
.rename_fav_list("my_new_favorite_list", "hard_problems")
124
@@ -130,7 +130,7 @@ async fn main() {
130
// Set list private
131
user_profile.set_private("hard_problems").await.unwrap();
132
133
- // Get link to the list if it is public
+ // Get link to the list if it is a public
134
user_profile.get_share_url("hard_problems").await.unwrap();
135
136
// Show existing lists
src/profile.rs
@@ -12,7 +12,7 @@ pub struct MyProfile {
}
impl MyProfile {
- pub async fn create_fav_list(&self, list_name: &str) -> Result<&MyProfile, Errors> {
+ pub async fn create_list(&self, list_name: &str) -> Result<&MyProfile, Errors> {
let query = json!({ "name": list_name });
18
let query = serde_json::to_string(&query)?;
@@ -28,7 +28,7 @@ impl MyProfile {
28
self.fav_lists.clone()
29
30
31
- pub async fn rename_fav_list(
+ pub async fn rename_list(
32
&self,
33
prev_list_name: &str,
34
new_list_name: &str,
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments