use chrono::TimeZone;
#[derive(Debug, Clone)]
pub struct WithTimezone<Type, Timezone: TimeZone + Sync + Send>(pub Type, pub Timezone);
pub trait WithTimezoneTrait<Timezone: TimeZone + Sync + Send> {
fn with_timezone(self, timezone: Timezone) -> WithTimezone<Self, Timezone>
where
Self: Sized,
{
WithTimezone(self, timezone)
}
}
impl<T, Timezone: TimeZone + Sync + Send> WithTimezoneTrait<Timezone> for T {}