sui_types/
messages_safe_client.rs1use crate::{
5 effects::{SignedTransactionEffects, TransactionEvents},
6 transaction::{SignedTransaction, Transaction},
7};
8
9#[derive(Clone, Debug)]
16#[allow(clippy::large_enum_variant)]
17pub enum PlainTransactionInfoResponse {
18 Signed(SignedTransaction),
19 Executed(Transaction, SignedTransactionEffects, TransactionEvents),
20}
21
22impl PlainTransactionInfoResponse {
23 pub fn is_executed(&self) -> bool {
24 match self {
25 PlainTransactionInfoResponse::Signed(_) => false,
26 PlainTransactionInfoResponse::Executed(_, _, _) => true,
27 }
28 }
29}