pub struct ListWrapperAvailabilityDataInner {
pub availability_id: Uuid,
pub tenant_id: Uuid,
pub worker_id: Uuid,
pub day_of_week: DayOfWeek,
pub start_time: String,
pub end_time: String,
pub services: Vec<Uuid>,
pub not_before: Option<Option<String>>,
pub not_after: Option<Option<String>>,
}Expand description
ListWrapperAvailabilityDataInner : Definition of a time slot, that is available regularly for booking
Fields§
§availability_id: UuidID of this availability
tenant_id: Uuidthe tenant this availability belongs to
worker_id: Uuidthis availability is for this worker
day_of_week: DayOfWeekwhich day of the week this availability is for
start_time: Stringtime of the day this availability starts
end_time: Stringtime of the day this availability ends
services: Vec<Uuid>list of services available for this availability (empty for all services available)
not_before: Option<Option<String>>limit the availability to a certain date range (start date, inclusive)
not_after: Option<Option<String>>limit the availability to a certain date range (end date, inclusive)
Implementations§
Trait Implementations§
Source§impl Clone for ListWrapperAvailabilityDataInner
impl Clone for ListWrapperAvailabilityDataInner
Source§fn clone(&self) -> ListWrapperAvailabilityDataInner
fn clone(&self) -> ListWrapperAvailabilityDataInner
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ListWrapperAvailabilityDataInner
impl Default for ListWrapperAvailabilityDataInner
Source§fn default() -> ListWrapperAvailabilityDataInner
fn default() -> ListWrapperAvailabilityDataInner
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ListWrapperAvailabilityDataInner
impl<'de> Deserialize<'de> for ListWrapperAvailabilityDataInner
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
Source§impl PartialEq for ListWrapperAvailabilityDataInner
impl PartialEq for ListWrapperAvailabilityDataInner
Source§fn eq(&self, other: &ListWrapperAvailabilityDataInner) -> bool
fn eq(&self, other: &ListWrapperAvailabilityDataInner) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ListWrapperAvailabilityDataInner
Auto Trait Implementations§
impl Freeze for ListWrapperAvailabilityDataInner
impl RefUnwindSafe for ListWrapperAvailabilityDataInner
impl Send for ListWrapperAvailabilityDataInner
impl Sync for ListWrapperAvailabilityDataInner
impl Unpin for ListWrapperAvailabilityDataInner
impl UnwindSafe for ListWrapperAvailabilityDataInner
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