pub struct SlotQuery<'a> {
pub schedule: &'a WeeklySchedule,
pub timezone: &'a str,
pub exceptions: &'a [HoursException],
pub duration_mins: u64,
pub buffer_mins: u64,
pub lead_mins: u64,
pub horizon_days: u64,
pub max_offers: u64,
}Expand description
What a book node needs to know to ask “when is this business free?”
— its own config, nothing about the caller and nothing about which
calendar answers. Borrowed from the node, so the engine copies no
schedules around.
Fields§
§schedule: &'a WeeklySchedule§timezone: &'a str§exceptions: &'a [HoursException]§duration_mins: u64§buffer_mins: u64§lead_mins: u64§horizon_days: u64§max_offers: u64How many times to ask for. The answer may be shorter, never longer.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SlotQuery<'a>
impl<'a> RefUnwindSafe for SlotQuery<'a>
impl<'a> Send for SlotQuery<'a>
impl<'a> Sync for SlotQuery<'a>
impl<'a> Unpin for SlotQuery<'a>
impl<'a> UnsafeUnpin for SlotQuery<'a>
impl<'a> UnwindSafe for SlotQuery<'a>
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
Mutably borrows from an owned value. Read more