pub struct create_booking;Expand description
Create a new resource booking
POST /resource-bookings
§Request Body
- building_id: UUID
- resource_type: ResourceType (MeetingRoom, LaundryRoom, Gym, etc.)
- resource_name: String (e.g., “Meeting Room A”)
- start_time: DateTime
- end_time: DateTime
- notes: Option
- recurring_pattern: RecurringPattern (default: None)
- recurrence_end_date: Option<DateTime
> - max_duration_hours: Option
(default: 4) - max_advance_days: Option
(default: 30)
§Responses
- 201 Created: Booking created successfully
- 400 Bad Request: Validation error or conflict
- 404 Not Found: Building not found
Trait Implementations§
Auto Trait Implementations§
impl Freeze for create_booking
impl RefUnwindSafe for create_booking
impl Send for create_booking
impl Sync for create_booking
impl Unpin for create_booking
impl UnwindSafe for create_booking
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
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
§impl<T> Fake for T
impl<T> Fake for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.