world-shipping 0.2.2

A simple shipping calculator
Documentation
1
2
3
4
5
6
7
8
9
10
11
use thiserror::Error;

#[derive(Debug, Error)]
pub enum InputValidationError {
    #[error("Invalid country code: {0}")]
    InvalidCountryCode(String),
    #[error("Invalid region code: {0}")]
    InvalidRegionCode(String),
    #[error("Unexpected region code: {0} - Country has no regions.")]
    UnexpectedRegionCode(String),
}