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