#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct ErrorOAuth2 {
#[serde(rename = "error", skip_serializing_if = "Option::is_none")]
pub error: Option<String>,
#[serde(rename = "error_debug", skip_serializing_if = "Option::is_none")]
pub error_debug: Option<String>,
#[serde(rename = "error_description", skip_serializing_if = "Option::is_none")]
pub error_description: Option<String>,
#[serde(rename = "error_hint", skip_serializing_if = "Option::is_none")]
pub error_hint: Option<String>,
#[serde(rename = "status_code", skip_serializing_if = "Option::is_none")]
pub status_code: Option<i64>,
}
impl Default for ErrorOAuth2 {
fn default() -> Self {
Self::new()
}
}
impl ErrorOAuth2 {
pub fn new() -> ErrorOAuth2 {
ErrorOAuth2 {
error: None,
error_debug: None,
error_description: None,
error_hint: None,
status_code: None,
}
}
}