pub struct FaultMessage {
pub fault_message: String,
}Expand description
The exact JSON body upstream Firecracker emits on every failed API call.
Wire shape:
{"fault_message": "Block device with ID 'rootfs' already exists"}No additional fields, ever — sniffed verbatim by SDKs and firectl.
Fields§
§fault_message: StringHuman-readable description of what went wrong. Squib makes a best-effort attempt to mirror upstream’s phrasing for known failure modes.
Implementations§
Source§impl FaultMessage
impl FaultMessage
Sourcepub fn new(reason: impl Into<String>) -> Self
pub fn new(reason: impl Into<String>) -> Self
Construct a FaultMessage from a string-like value.
Trait Implementations§
Source§impl Clone for FaultMessage
impl Clone for FaultMessage
Source§fn clone(&self) -> FaultMessage
fn clone(&self) -> FaultMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FaultMessage
impl Debug for FaultMessage
Source§impl<'de> Deserialize<'de> for FaultMessage
impl<'de> Deserialize<'de> for FaultMessage
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 PartialEq for FaultMessage
impl PartialEq for FaultMessage
Source§fn eq(&self, other: &FaultMessage) -> bool
fn eq(&self, other: &FaultMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FaultMessage
impl Serialize for FaultMessage
impl Eq for FaultMessage
impl StructuralPartialEq for FaultMessage
Auto Trait Implementations§
impl Freeze for FaultMessage
impl RefUnwindSafe for FaultMessage
impl Send for FaultMessage
impl Sync for FaultMessage
impl Unpin for FaultMessage
impl UnsafeUnpin for FaultMessage
impl UnwindSafe for FaultMessage
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