iota_types/
messages_safe_client.rs1use crate::{
6 effects::{SignedTransactionEffects, TransactionEvents},
7 transaction::{CertifiedTransaction, SignedTransaction, Transaction},
8};
9
10#[derive(Clone, Debug)]
17pub enum PlainTransactionInfoResponse {
18 Signed(SignedTransaction),
19 ExecutedWithCert(
20 CertifiedTransaction,
21 SignedTransactionEffects,
22 TransactionEvents,
23 ),
24 ExecutedWithoutCert(Transaction, SignedTransactionEffects, TransactionEvents),
25}
26
27impl PlainTransactionInfoResponse {
28 pub fn is_executed(&self) -> bool {
29 match self {
30 PlainTransactionInfoResponse::Signed(_) => false,
31 PlainTransactionInfoResponse::ExecutedWithCert(_, _, _)
32 | PlainTransactionInfoResponse::ExecutedWithoutCert(_, _, _) => true,
33 }
34 }
35}