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