pub struct BookingBookResponse {
pub status: String,
pub start: Option<String>,
pub reason: Option<String>,
}Expand description
Answer to POST /api/voice/booking/book.
Three outcomes, and the flow does something different with each:
booked continues, slot_taken can offer again, unavailable falls
back. Left as a string rather than an enum so a status added later
deserializes instead of failing the call.
Fields§
§status: String§start: Option<String>Present on booked — the instant the appointment actually
starts, which on an idempotent retry is the existing event’s
start and not necessarily the one that was asked for.
reason: Option<String>Trait Implementations§
Source§impl Clone for BookingBookResponse
impl Clone for BookingBookResponse
Source§fn clone(&self) -> BookingBookResponse
fn clone(&self) -> BookingBookResponse
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 BookingBookResponse
impl Debug for BookingBookResponse
Source§impl<'de> Deserialize<'de> for BookingBookResponse
impl<'de> Deserialize<'de> for BookingBookResponse
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 BookingBookResponse
Source§impl PartialEq for BookingBookResponse
impl PartialEq for BookingBookResponse
Source§impl Serialize for BookingBookResponse
impl Serialize for BookingBookResponse
impl StructuralPartialEq for BookingBookResponse
Auto Trait Implementations§
impl Freeze for BookingBookResponse
impl RefUnwindSafe for BookingBookResponse
impl Send for BookingBookResponse
impl Sync for BookingBookResponse
impl Unpin for BookingBookResponse
impl UnsafeUnpin for BookingBookResponse
impl UnwindSafe for BookingBookResponse
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