inscription_id: InscriptionId, }, ValueOverflow, } #[derive(Debug, PartialEq)] pub enum Target { Value(Amount), Postage, ExactPostage(Amount), } impl fmt::Display for Error { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { Error::Dust { output_value, dust_value, } => write!(f, "output value is below dust value: {output_value} < {dust_value}"), Error::NotInWallet(outgoing_satpoint) => write!(f, "outgoing satpoint {outgoing_satpoint} not in wallet"), Error::OutOfRange(outgoing_satpoint, maximum) => write!(f, "outgoing satpoint {outgoing_satpoint} offset higher than maximum {maximum}"), Error::NotEnoughCardinalUtxos => write!( f, "wallet does not contain enough cardinal UTXOs, please add additional funds to wallet." ), Error::UtxoContainsAdditionalInscription { outgoing_satpoint, inscribed_satpoint, inscription_id, } => write!( f, "cannot send {outgoing_satpoint} without also sending inscription {inscription_id} at {inscribed_satpoint}"