Makes Error details optional

- Makes Error details option, as many types don't return the field.
- Removes dangling println statement.
This commit is contained in:
2024-02-29 12:36:20 +00:00
parent c538d915e5
commit f2da435af8
2 changed files with 1 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ pub struct Error {
pub code: i32,
pub message: String,
pub status: String,
pub details: Vec<ErrorType>,
pub details: Option<Vec<ErrorType>>,
}
#[derive(Clone, Debug, Serialize, Deserialize)]