From 2eb9364bfa3f8ed656cc076b53bb83bdf9915881 Mon Sep 17 00:00:00 2001 From: Allan Clements Date: Fri, 19 Apr 2024 02:06:06 -0500 Subject: [PATCH] Default message to empty string for ResponseStatus (#207) --- gremlin-client/src/message.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gremlin-client/src/message.rs b/gremlin-client/src/message.rs index e1efaa5e..08309c10 100644 --- a/gremlin-client/src/message.rs +++ b/gremlin-client/src/message.rs @@ -64,6 +64,8 @@ pub struct ResponseResult { #[derive(Debug, Deserialize)] pub struct ReponseStatus { pub code: i16, + //Sometimes the message is omitted, default to empty string rather than panic + #[serde(default)] pub message: String, }