pub struct AppointmentSlot {
pub start_time: Option<String>,
pub end_time: Option<String>,
pub capacity: Option<i32>,
}Expand description
AppointmentSlot : A time window along with associated capacity in which the service can be performed.
Fields§
§start_time: Option<String>Time window start time in ISO 8601 format.
end_time: Option<String>Time window end time in ISO 8601 format.
capacity: Option<i32>Number of resources for which a slot can be reserved.
Implementations§
Source§impl AppointmentSlot
impl AppointmentSlot
Sourcepub fn new() -> AppointmentSlot
pub fn new() -> AppointmentSlot
A time window along with associated capacity in which the service can be performed.
Trait Implementations§
Source§impl Clone for AppointmentSlot
impl Clone for AppointmentSlot
Source§fn clone(&self) -> AppointmentSlot
fn clone(&self) -> AppointmentSlot
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 AppointmentSlot
impl Debug for AppointmentSlot
Source§impl Default for AppointmentSlot
impl Default for AppointmentSlot
Source§fn default() -> AppointmentSlot
fn default() -> AppointmentSlot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AppointmentSlot
impl<'de> Deserialize<'de> for AppointmentSlot
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 AppointmentSlot
impl PartialEq for AppointmentSlot
Source§impl Serialize for AppointmentSlot
impl Serialize for AppointmentSlot
impl StructuralPartialEq for AppointmentSlot
Auto Trait Implementations§
impl Freeze for AppointmentSlot
impl RefUnwindSafe for AppointmentSlot
impl Send for AppointmentSlot
impl Sync for AppointmentSlot
impl Unpin for AppointmentSlot
impl UnsafeUnpin for AppointmentSlot
impl UnwindSafe for AppointmentSlot
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