You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
237: Put type on timestamp and duration r=brunoocasali a=irevoire
Parse the Duration and timestamp with the `iso8601-duration` and the `time` crate
Co-authored-by: Irevoire <tamo@meilisearch.com>
Copy file name to clipboardExpand all lines: src/client.rs
+32-47Lines changed: 32 additions & 47 deletions
Original file line number
Diff line number
Diff line change
@@ -99,11 +99,11 @@ impl Client {
99
99
/// # futures::executor::block_on(async move {
100
100
/// // create the client
101
101
/// let client = Client::new("http://localhost:7700", "masterKey");
102
-
/// # let index = client.create_index("movies", None).await.unwrap().wait_for_completion(&client, None, None).await.unwrap().try_make_index(&client).unwrap();
102
+
/// # let index = client.create_index("get_index", None).await.unwrap().wait_for_completion(&client, None, None).await.unwrap().try_make_index(&client).unwrap();
103
103
///
104
-
/// // get the index named "movies"
105
-
/// let movies = client.get_index("movies").await.unwrap();
106
-
/// assert_eq!(movies.as_ref(), "movies");
104
+
/// // get the index named "get_index"
105
+
/// let index = client.get_index("get_index").await.unwrap();
/// let client = Client::new("http://localhost:7700", "masterKey");
127
-
/// # let index = client.create_index("movies", None).await.unwrap().wait_for_completion(&client, None, None).await.unwrap().try_make_index(&client).unwrap();
127
+
/// # let index = client.create_index("get_raw_index", None).await.unwrap().wait_for_completion(&client, None, None).await.unwrap().try_make_index(&client).unwrap();
128
128
///
129
-
/// // get the index named "movies"
130
-
/// let movies = client.get_raw_index("movies").await.unwrap();
131
-
/// assert_eq!(movies.uid, "movies");
129
+
/// // get the index named "get_raw_index"
130
+
/// let raw_index = client.get_raw_index("get_raw_index").await.unwrap();
0 commit comments