Do not return update_id on IndexCreateRespnse if it's none

This commit is contained in:
Quentin de Quelen 2019-11-19 17:41:10 +01:00
parent e6465f4ea1
commit c94f4dff71

View File

@ -125,6 +125,7 @@ struct IndexCreateResponse {
name: String, name: String,
uid: String, uid: String,
schema: Option<SchemaBody>, schema: Option<SchemaBody>,
#[serde(skip_serializing_if = "Option::is_none")]
update_id: Option<u64>, update_id: Option<u64>,
created_at: DateTime<Utc>, created_at: DateTime<Utc>,
updated_at: DateTime<Utc>, updated_at: DateTime<Utc>,