pub struct SpoolCommandAnswer {
pub decision: PolicyDecision,
pub events: Vec<EventRecord>,
pub spool: Option<SpoolRecord>,
}Expand description
What a spool command answers, accepted or refused.
A refusal is the same shape and deliberately so: the decision carries the grant or the ledger’s own reason, and the events are the record the refusal wrote.
Fields§
§decision: PolicyDecisionThe decision taken on the command.
events: Vec<EventRecord>Every event it wrote, in the order they were written.
spool: Option<SpoolRecord>The spool it was about, as the command left it, when there is one.
Trait Implementations§
Source§impl Clone for SpoolCommandAnswer
impl Clone for SpoolCommandAnswer
Source§impl Debug for SpoolCommandAnswer
impl Debug for SpoolCommandAnswer
Source§impl<'de> Deserialize<'de> for SpoolCommandAnswer
impl<'de> Deserialize<'de> for SpoolCommandAnswer
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 SpoolCommandAnswer
impl PartialEq for SpoolCommandAnswer
Source§impl Serialize for SpoolCommandAnswer
impl Serialize for SpoolCommandAnswer
impl StructuralPartialEq for SpoolCommandAnswer
Auto Trait Implementations§
impl Freeze for SpoolCommandAnswer
impl RefUnwindSafe for SpoolCommandAnswer
impl Send for SpoolCommandAnswer
impl Sync for SpoolCommandAnswer
impl Unpin for SpoolCommandAnswer
impl UnsafeUnpin for SpoolCommandAnswer
impl UnwindSafe for SpoolCommandAnswer
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