pub struct BookingSlotsRequest {
pub source_id: String,
pub duration_mins: u32,
pub buffer_mins: u32,
pub lead_mins: u32,
pub horizon_days: u32,
pub schedule: BookingSchedule,
pub timezone: String,
pub exceptions: Vec<BookingException>,
pub limit: u32,
}Expand description
Body of POST /api/voice/booking/slots.
Everything except source_id comes straight off the flow document’s
book step; the platform holds no per-node configuration of its own.
Fields§
§source_id: StringThe call this offer belongs to (voice_calls.source_id). Slots
are held against it, which is what stops a caller being blocked
by their own offers — and what stops a second caller being
offered the same time.
duration_mins: u32§buffer_mins: u32§lead_mins: u32§horizon_days: u32§schedule: BookingSchedule§timezone: StringIANA zone the schedule is written in.
exceptions: Vec<BookingException>§limit: u32How many times to offer. The answer may be shorter, never longer.
Trait Implementations§
Source§impl Clone for BookingSlotsRequest
impl Clone for BookingSlotsRequest
Source§fn clone(&self) -> BookingSlotsRequest
fn clone(&self) -> BookingSlotsRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BookingSlotsRequest
impl Debug for BookingSlotsRequest
Source§impl<'de> Deserialize<'de> for BookingSlotsRequest
impl<'de> Deserialize<'de> for BookingSlotsRequest
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BookingSlotsRequest
Source§impl PartialEq for BookingSlotsRequest
impl PartialEq for BookingSlotsRequest
Source§impl Serialize for BookingSlotsRequest
impl Serialize for BookingSlotsRequest
impl StructuralPartialEq for BookingSlotsRequest
Auto Trait Implementations§
impl Freeze for BookingSlotsRequest
impl RefUnwindSafe for BookingSlotsRequest
impl Send for BookingSlotsRequest
impl Sync for BookingSlotsRequest
impl Unpin for BookingSlotsRequest
impl UnsafeUnpin for BookingSlotsRequest
impl UnwindSafe for BookingSlotsRequest
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