mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
@@ -70,24 +70,24 @@ pub struct JsonServerError {
|
|||||||
/// The latter happen if the sent parameters or request structures are unsound
|
/// The latter happen if the sent parameters or request structures are unsound
|
||||||
#[derive(Deserialize, Serialize, Debug)]
|
#[derive(Deserialize, Serialize, Debug)]
|
||||||
pub struct ErrorResponse {
|
pub struct ErrorResponse {
|
||||||
error: ServerError,
|
pub error: ServerError,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, Serialize, Debug)]
|
#[derive(Deserialize, Serialize, Debug)]
|
||||||
pub struct ServerError {
|
pub struct ServerError {
|
||||||
errors: Vec<ServerMessage>,
|
pub errors: Vec<ServerMessage>,
|
||||||
code: u16,
|
pub code: u16,
|
||||||
message: String,
|
pub message: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, Serialize, Debug)]
|
#[derive(Deserialize, Serialize, Debug)]
|
||||||
pub struct ServerMessage {
|
pub struct ServerMessage {
|
||||||
domain: String,
|
pub domain: String,
|
||||||
reason: String,
|
pub reason: String,
|
||||||
message: String,
|
pub message: String,
|
||||||
#[serde(rename="locationType")]
|
#[serde(rename="locationType")]
|
||||||
location_type: Option<String>,
|
pub location_type: Option<String>,
|
||||||
location: Option<String>
|
pub location: Option<String>
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
|
|||||||
Reference in New Issue
Block a user