firecracker_rs_sdk/models/error.rs
1use std::fmt::Display;
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord, Hash)]
6pub struct InternalError {
7 /// A description of the error condition
8 /// readOnly: true
9 #[serde(rename = "fault_message")]
10 pub fault_message: String,
11}
12
13impl Display for InternalError {
14 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
15 write!(f, "{}", self.fault_message)
16 }
17}