pub fn is_amount<T>(amount: T) -> Result<(), String>
where T: AsRef<str> + Display,