File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -1152,8 +1152,10 @@ pub struct ClientStats {
1152
1152
/// Storage space claimed by Meilisearch and LMDB in bytes
1153
1153
pub database_size : usize ,
1154
1154
1155
- /// Storage space used by the database in bytes, excluding unused space claimed by LMDB
1156
- pub used_database_size : usize ,
1155
+ /// Storage space used by the database in bytes, excluding unused space claimed by LMDB.
1156
+ /// Is `None` for Meilisearch servers older than 1.13.
1157
+ #[ serde( default ) ]
1158
+ pub used_database_size : Option < usize > ,
1157
1159
1158
1160
/// When the last update was made to the database in the `RFC 3339` format
1159
1161
#[ serde( with = "time::serde::rfc3339::option" ) ]
Original file line number Diff line number Diff line change @@ -1900,10 +1900,14 @@ pub struct IndexStats {
1900
1900
pub number_of_documents : usize ,
1901
1901
1902
1902
/// Total number of documents with at least one embedding
1903
- pub number_of_embedded_documents : usize ,
1903
+ /// Is `None` for Meilisearch servers older than 1.13.
1904
+ #[ serde( default ) ]
1905
+ pub number_of_embedded_documents : Option < usize > ,
1904
1906
1905
1907
/// Total number of embeddings in an index
1906
- pub number_of_embeddings : usize ,
1908
+ /// Is `None` for Meilisearch servers older than 1.13.
1909
+ #[ serde( default ) ]
1910
+ pub number_of_embeddings : Option < usize > ,
1907
1911
1908
1912
/// Storage space claimed by all documents in the index in bytes
1909
1913
pub raw_document_db_size : usize ,
You can’t perform that action at this time.
0 commit comments