pub struct ControlErrorData {
pub code: String,
pub origin: String,
}Expand description
The machine-branchable inner data on a control error: the stable symbol + its origin.
Serializes to {"code": "UNAUTHORIZED", "origin": "shell"}, matching dig-node’s error.data.
Fields§
§code: StringThe stable UPPER_SNAKE symbol (e.g. "UNAUTHORIZED") — see ControlErrorCode::name.
origin: StringWhere the error originated (shell / node / boundary) — see ControlErrorCode::origin.
Trait Implementations§
Source§impl Clone for ControlErrorData
impl Clone for ControlErrorData
Source§fn clone(&self) -> ControlErrorData
fn clone(&self) -> ControlErrorData
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 ControlErrorData
impl Debug for ControlErrorData
Source§impl<'de> Deserialize<'de> for ControlErrorData
impl<'de> Deserialize<'de> for ControlErrorData
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
impl Eq for ControlErrorData
Source§impl PartialEq for ControlErrorData
impl PartialEq for ControlErrorData
Source§impl Serialize for ControlErrorData
impl Serialize for ControlErrorData
impl StructuralPartialEq for ControlErrorData
Auto Trait Implementations§
impl Freeze for ControlErrorData
impl RefUnwindSafe for ControlErrorData
impl Send for ControlErrorData
impl Sync for ControlErrorData
impl Unpin for ControlErrorData
impl UnsafeUnpin for ControlErrorData
impl UnwindSafe for ControlErrorData
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