#[non_exhaustive]pub struct ToolReceipt {
pub operation: ToolReceiptOperation,
pub outcome: ToolReceiptOutcome,
pub body: ToolReceiptBody,
}Expand description
The shared toolReceipt container.
family, operation and outcome are required together and sit at the
top level; body is flattened, so family and details are emitted
beside the other two rather than nested.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.operation: ToolReceiptOperationWhich operation it describes. Required with the other two.
outcome: ToolReceiptOutcomeWhat the operation did. Required with the other two.
body: ToolReceiptBodyThe family discriminator and its details payload.
Trait Implementations§
Source§impl Clone for ToolReceipt
impl Clone for ToolReceipt
Source§impl Debug for ToolReceipt
impl Debug for ToolReceipt
Source§impl<'de> Deserialize<'de> for ToolReceipt
impl<'de> Deserialize<'de> for ToolReceipt
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 ToolReceipt
impl PartialEq for ToolReceipt
Source§impl Serialize for ToolReceipt
impl Serialize for ToolReceipt
impl StructuralPartialEq for ToolReceipt
Auto Trait Implementations§
impl Forget for ToolReceipt
impl Freeze for ToolReceipt
impl Move for ToolReceipt
impl RefUnwindSafe for ToolReceipt
impl Send for ToolReceipt
impl Sync for ToolReceipt
impl Unpin for ToolReceipt
impl UnsafeUnpin for ToolReceipt
impl UnwindSafe for ToolReceipt
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