pub struct ScheduleConfig {
pub timezone: String,
pub active_hours_start: u8,
pub active_hours_end: u8,
pub active_days: Vec<String>,
pub preferred_times: Vec<String>,
pub preferred_times_override: HashMap<String, Vec<String>>,
pub thread_preferred_day: Option<String>,
pub thread_preferred_time: String,
}Expand description
Active hours schedule configuration.
Fields§
§timezone: StringIANA timezone name (e.g. “America/New_York”, “UTC”).
active_hours_start: u8Hour of day (0-23) when active posting window starts.
active_hours_end: u8Hour of day (0-23) when active posting window ends.
active_days: Vec<String>Days of the week when posting is active (e.g. [“Mon”, “Tue”, …]).
preferred_times: Vec<String>Preferred posting times for tweets (HH:MM in 24h format, in configured timezone). When set, the content loop posts at these specific times instead of using interval mode. Use “auto” for research-backed defaults: 09:15, 12:30, 17:00.
preferred_times_override: HashMap<String, Vec<String>>Per-day overrides for preferred posting times.
Keys are day abbreviations (Mon-Sun), values are lists of “HH:MM” times.
Days not listed use the base preferred_times. Empty list = no posts that day.
thread_preferred_day: Option<String>Preferred day for weekly thread posting (Mon-Sun). None = interval mode.
thread_preferred_time: StringPreferred time for weekly thread posting (HH:MM, 24h format).
Trait Implementations§
Source§impl Clone for ScheduleConfig
impl Clone for ScheduleConfig
Source§fn clone(&self) -> ScheduleConfig
fn clone(&self) -> ScheduleConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ScheduleConfig
impl Debug for ScheduleConfig
Source§impl Default for ScheduleConfig
impl Default for ScheduleConfig
Source§impl<'de> Deserialize<'de> for ScheduleConfig
impl<'de> Deserialize<'de> for ScheduleConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for ScheduleConfig
impl RefUnwindSafe for ScheduleConfig
impl Send for ScheduleConfig
impl Sync for ScheduleConfig
impl Unpin for ScheduleConfig
impl UnsafeUnpin for ScheduleConfig
impl UnwindSafe for ScheduleConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more