use super::*;
impl<N: Network> FromStr for ConfirmedTransaction<N> {
type Err = Error;
fn from_str(status: &str) -> Result<Self, Self::Err> {
Ok(serde_json::from_str(status)?)
}
}
impl<N: Network> Debug for ConfirmedTransaction<N> {
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
Display::fmt(self, f)
}
}
impl<N: Network> Display for ConfirmedTransaction<N> {
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
write!(f, "{}", serde_json::to_string(self).map_err::<fmt::Error, _>(ser::Error::custom)?)
}
}