added Clone for HolidayChecker
This commit is contained in:
parent
a5509152dd
commit
418f710253
@ -6,7 +6,7 @@ use crate::{
|
||||
utils::{self},
|
||||
};
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct GermanHolidays(pub Vec<Holiday<GermanState>>);
|
||||
|
||||
/// Enum representing the states in Germany for holiday checking.
|
||||
|
@ -6,7 +6,7 @@ use crate::{
|
||||
utils,
|
||||
};
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct FrenchHolidays(pub Vec<Holiday<FrenchState>>);
|
||||
|
||||
/// Enum representing the states in France for holiday checking.
|
||||
|
@ -6,7 +6,7 @@ use crate::{
|
||||
utils,
|
||||
};
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct USHolidays(pub Vec<Holiday<USState>>);
|
||||
|
||||
/// Enum representing the states in The United States of America for holiday checking.
|
||||
|
@ -10,7 +10,7 @@ pub(crate) mod utils;
|
||||
|
||||
pub use countries::{CountryState, de::GermanState, fr::FrenchState, us::USState};
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone)]
|
||||
/// Struct for checking holidays in different countries.
|
||||
///
|
||||
/// The `HolidayChecker` struct provides methods to check holidays for Germany, the United States, and France.
|
||||
|
Loading…
Reference in New Issue
Block a user