parse_sap_atom_feed/odata_error/inner_error/
mod.rs

1pub mod application;
2pub mod error_details;
3pub mod error_resolution;
4
5use application::Application;
6use error_details::ErrorDetails;
7use error_resolution::ErrorResolution;
8use serde::{Deserialize, Serialize};
9
10// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
11/// Represents an internal SAP OData `<innererror>` tag
12#[derive(Debug, Serialize, Deserialize)]
13pub struct InnerError {
14    pub application: Option<Application>,
15
16    #[serde(rename = "transactionid")]
17    pub transaction_id: String,
18
19    pub timestamp: String,
20
21    #[serde(rename = "Error_Resolution")]
22    pub error_resolution: ErrorResolution,
23
24    #[serde(rename = "errordetails")]
25    pub error_details: Option<ErrorDetails>,
26}
27
28// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
29#[cfg(test)]
30pub mod unit_tests;