pub struct XmlErrorBody {
pub code: u16,
pub message: Option<JavaErrorMessage>,
pub reason: String,
pub cause: Option<String>,
pub hostname: Option<String>,
pub x_id: Option<String>,
}
Expand description
Error body similar to JsonErrorBody
but for the JFS.
Fields§
§code: u16
Error code.
message: Option<JavaErrorMessage>
Error message.
reason: String
Error reason.
cause: Option<String>
Error cause.
hostname: Option<String>
Hostname of the remote node.
x_id: Option<String>
Some kind of tracing id maybe?
Implementations§
Source§impl XmlErrorBody
impl XmlErrorBody
Sourcepub fn exception_opt(&self) -> Option<Exception>
pub fn exception_opt(&self) -> Option<Exception>
Attempt to extract an Exception
.
Trait Implementations§
Source§impl Debug for XmlErrorBody
impl Debug for XmlErrorBody
Source§impl<'de> Deserialize<'de> for XmlErrorBody
impl<'de> Deserialize<'de> for XmlErrorBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<XmlErrorBody> for Error
impl From<XmlErrorBody> for Error
Source§fn from(err: XmlErrorBody) -> Self
fn from(err: XmlErrorBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for XmlErrorBody
impl RefUnwindSafe for XmlErrorBody
impl Send for XmlErrorBody
impl Sync for XmlErrorBody
impl Unpin for XmlErrorBody
impl UnwindSafe for XmlErrorBody
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more