brasilapi_client/
constants.rs

1pub const DEFAULT_BASE_URL : &str = "https://brasilapi.com.br/api";
2
3pub(crate) mod banks {
4  pub(crate) const SVC_URL: &str = "banks/v1";
5  pub(crate) const MIN_CODE: &i16 = &1;
6  pub(crate) const MAX_CODE: &i16 = &999;
7}
8
9pub(crate) mod cep {
10    pub(crate) const SVC_V1_URL: &str = "cep/v1";
11    pub(crate) const SVC_V2_URL: &str = "cep/v2";
12}
13
14pub(crate) mod ddd {
15  pub(crate) const SVC_URL: &str = "ddd/v1";
16  pub(crate) const MIN_DDD: &i8 = &11;
17  pub(crate) const MAX_DDD: &i8 = &99;
18}
19
20pub(crate) mod holidays {
21  pub(crate) const SVC_URL: &str = "feriados/v1";
22  pub(crate) const MIN_YEAR: &i32 = &1900;
23  pub(crate) const MAX_YEAR: &i32 = &2199;
24}