safecoin_clap_utils/
lib.rs1use thiserror::Error;
2
3pub struct ArgConstant<'a> {
4 pub long: &'a str,
5 pub name: &'a str,
6 pub help: &'a str,
7}
8
9#[derive(Error)]
12#[error("{0}")]
13pub struct DisplayError(Box<dyn std::error::Error>);
14impl DisplayError {
15 pub fn new_as_boxed(inner: Box<dyn std::error::Error>) -> Box<Self> {
16 DisplayError(inner).into()
17 }
18}
19
20impl std::fmt::Debug for DisplayError {
21 fn fmt(&self, fmt: &mut std::fmt::Formatter) -> std::fmt::Result {
22 write!(fmt, "{}", self.0)
23 }
24}
25
26pub mod compute_unit_price;
27pub mod fee_payer;
28pub mod input_parsers;
29pub mod input_validators;
30pub mod keypair;
31pub mod memo;
32pub mod nonce;
33pub mod offline;