pub struct Availability {
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
Availability : 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 Availability
impl Clone for Availability
Source§fn clone(&self) -> Availability
fn clone(&self) -> Availability
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 Debug for Availability
impl Debug for Availability
Source§impl Default for Availability
impl Default for Availability
Source§fn default() -> Availability
fn default() -> Availability
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Availability
impl<'de> Deserialize<'de> for Availability
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 Availability
impl PartialEq for Availability
Source§impl Serialize for Availability
impl Serialize for Availability
impl StructuralPartialEq for Availability
Auto Trait Implementations§
impl Freeze for Availability
impl RefUnwindSafe for Availability
impl Send for Availability
impl Sync for Availability
impl Unpin for Availability
impl UnwindSafe for Availability
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