pub struct Receipt {
pub accepted: bool,
pub applied_tick_id: Option<TickId>,
pub reason_code: Option<IngressError>,
pub command_index: usize,
}Expand description
Receipt returned for each command in a submitted batch.
Indicates whether the command was accepted and, if applied, which tick it was applied in.
§Examples
use murk_core::command::Receipt;
use murk_core::TickId;
let receipt = Receipt {
accepted: true,
applied_tick_id: Some(TickId(5)),
reason_code: None,
command_index: 0,
};
assert!(receipt.accepted);
assert_eq!(receipt.applied_tick_id, Some(TickId(5)));Fields§
§accepted: boolWhether the command was accepted by the ingress pipeline.
applied_tick_id: Option<TickId>The tick at which the command was applied, if applicable.
reason_code: Option<IngressError>The reason the command was rejected, if applicable.
command_index: usizeIndex of this command within the submitted batch.
Trait Implementations§
impl Eq for Receipt
impl StructuralPartialEq for Receipt
Auto Trait Implementations§
impl Freeze for Receipt
impl RefUnwindSafe for Receipt
impl Send for Receipt
impl Sync for Receipt
impl Unpin for Receipt
impl UnsafeUnpin for Receipt
impl UnwindSafe for Receipt
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