@@ -407,6 +407,7 @@ impl Index {
407407pub  async  fn  get_documents_with < T :  DeserializeOwned  + ' static > ( 
408408        & self , 
409409        documents_query :  & DocumentsQuery < ' _ > , 
410+     )  -> Result < DocumentsResults < T > ,  Error >  { 
410411        let  url = format ! ( "{}/indexes/{}/documents" ,  self . client. host,  self . uid) ; 
411412        request :: < & DocumentsQuery ,  DocumentsResults < T > > ( 
412413            & url, 
@@ -467,7 +468,7 @@ impl Index {
467468/// client.wait_for_task(task, None, None).await.unwrap(); 
468469/// 
469470/// let movies = movie_index.get_documents::<Movie>().await.unwrap(); 
470- /// assert!(movies.len() >= 3); 
471+ /// assert!(movies.results. len() >= 3); 
471472/// # movie_index.delete().await.unwrap().wait_for_completion(&client, None, None).await.unwrap(); 
472473/// # }); 
473474/// ``` 
@@ -545,7 +546,7 @@ impl Index {
545546/// client.wait_for_task(task, None, None).await.unwrap(); 
546547/// 
547548/// let movies = movie_index.get_documents::<Movie>().await.unwrap(); 
548- /// assert!(movies.len() >= 3); 
549+ /// assert!(movies.results. len() >= 3); 
549550/// # movie_index.delete().await.unwrap().wait_for_completion(&client, None, None).await.unwrap(); 
550551/// # }); 
551552/// ``` 
0 commit comments