pub struct BookingDay {
pub date: String,
pub slots: Vec<String>,
}Expand description
One day’s availability in a Booking block. An empty slots (or the
literal full) marks the day as unavailable.
Fields§
§date: StringISO date YYYY-MM-DD.
slots: Vec<String>Selectable time-slot labels (e.g. “9:00 AM”); empty = unavailable.
Trait Implementations§
Source§impl Clone for BookingDay
impl Clone for BookingDay
Source§fn clone(&self) -> BookingDay
fn clone(&self) -> BookingDay
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 BookingDay
impl Debug for BookingDay
Source§impl<'de> Deserialize<'de> for BookingDay
impl<'de> Deserialize<'de> for BookingDay
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
Auto Trait Implementations§
impl Freeze for BookingDay
impl RefUnwindSafe for BookingDay
impl Send for BookingDay
impl Sync for BookingDay
impl Unpin for BookingDay
impl UnsafeUnpin for BookingDay
impl UnwindSafe for BookingDay
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