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:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user