| 119 | |
| 120 | #[derive(Debug, Clone)] |
| 121 | pub struct NoticeResponse { |
| 122 | pub severity: String, |
| 123 | pub code: String, |
| 124 | pub message: String, |
| 125 | pub detail: Option<String>, |
| 126 | pub hint: Option<String>, |
| 127 | pub position: Option<i32>, |
| 128 | pub where_: Option<String>, |
| 129 | } |
| 130 | |
| 131 | impl ErrorResponse { |
| 132 | pub fn new(severity: String, code: String, message: String) -> Self { |