#[derive(Clone)]
pub struct TradeMarker {
pub x: f64,
pub y: f64,
pub is_buy: bool,
}
#[derive(Clone)]
pub struct OrderChartMarker {
pub x: f64,
pub price: f64,
}
#[derive(Clone, Debug)]
pub enum TxStatusMsg {
TradeMarker {
symbol: String,
is_buy: bool,
},
SetStatus {
title: String,
detail: String,
},
LedgerOnly {
title: String,
signature: String,
},
PromptReferralChoice,
}
impl TxStatusMsg {
pub fn is_per_slice_chatter(&self) -> bool {
match self {
TxStatusMsg::SetStatus { .. } => true,
TxStatusMsg::TradeMarker { .. } => false,
TxStatusMsg::LedgerOnly { .. } => false,
TxStatusMsg::PromptReferralChoice => false,
}
}
}
#[derive(Clone, Debug)]
pub struct LedgerEntry {
pub timestamp: String,
pub title: String,
pub txid: String,
}