added Clone for HolidayChecker

This commit is contained in:
Hlars 2025-08-07 17:23:46 +02:00
parent a5509152dd
commit 418f710253
4 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ use crate::{
utils::{self}, utils::{self},
}; };
#[derive(Debug)] #[derive(Debug, Clone)]
pub(crate) struct GermanHolidays(pub Vec<Holiday<GermanState>>); pub(crate) struct GermanHolidays(pub Vec<Holiday<GermanState>>);
/// Enum representing the states in Germany for holiday checking. /// Enum representing the states in Germany for holiday checking.

View File

@ -6,7 +6,7 @@ use crate::{
utils, utils,
}; };
#[derive(Debug)] #[derive(Debug, Clone)]
pub(crate) struct FrenchHolidays(pub Vec<Holiday<FrenchState>>); pub(crate) struct FrenchHolidays(pub Vec<Holiday<FrenchState>>);
/// Enum representing the states in France for holiday checking. /// Enum representing the states in France for holiday checking.

View File

@ -6,7 +6,7 @@ use crate::{
utils, utils,
}; };
#[derive(Debug)] #[derive(Debug, Clone)]
pub(crate) struct USHolidays(pub Vec<Holiday<USState>>); pub(crate) struct USHolidays(pub Vec<Holiday<USState>>);
/// Enum representing the states in The United States of America for holiday checking. /// Enum representing the states in The United States of America for holiday checking.

View File

@ -10,7 +10,7 @@ pub(crate) mod utils;
pub use countries::{CountryState, de::GermanState, fr::FrenchState, us::USState}; pub use countries::{CountryState, de::GermanState, fr::FrenchState, us::USState};
#[derive(Debug)] #[derive(Debug, Clone)]
/// Struct for checking holidays in different countries. /// Struct for checking holidays in different countries.
/// ///
/// The `HolidayChecker` struct provides methods to check holidays for Germany, the United States, and France. /// The `HolidayChecker` struct provides methods to check holidays for Germany, the United States, and France.