pub struct AvailabilityRecord {
pub start_time: String,
pub end_time: String,
pub recurrence: Option<Box<Recurrence>>,
pub capacity: Option<i32>,
}Expand description
AvailabilityRecord : AvailabilityRecord to represent the capacity of a resource over a time range.
Fields§
§start_time: StringDenotes the time from when the resource is available in a day in ISO-8601 format.
end_time: StringDenotes the time till when the resource is available in a day in ISO-8601 format.
recurrence: Option<Box<Recurrence>>§capacity: Option<i32>Signifies the capacity of a resource which is available.
Implementations§
Source§impl AvailabilityRecord
impl AvailabilityRecord
Sourcepub fn new(start_time: String, end_time: String) -> AvailabilityRecord
pub fn new(start_time: String, end_time: String) -> AvailabilityRecord
AvailabilityRecord to represent the capacity of a resource over a time range.
Trait Implementations§
Source§impl Clone for AvailabilityRecord
impl Clone for AvailabilityRecord
Source§fn clone(&self) -> AvailabilityRecord
fn clone(&self) -> AvailabilityRecord
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 AvailabilityRecord
impl Debug for AvailabilityRecord
Source§impl Default for AvailabilityRecord
impl Default for AvailabilityRecord
Source§fn default() -> AvailabilityRecord
fn default() -> AvailabilityRecord
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AvailabilityRecord
impl<'de> Deserialize<'de> for AvailabilityRecord
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 AvailabilityRecord
impl PartialEq for AvailabilityRecord
Source§impl Serialize for AvailabilityRecord
impl Serialize for AvailabilityRecord
impl StructuralPartialEq for AvailabilityRecord
Auto Trait Implementations§
impl Freeze for AvailabilityRecord
impl RefUnwindSafe for AvailabilityRecord
impl Send for AvailabilityRecord
impl Sync for AvailabilityRecord
impl Unpin for AvailabilityRecord
impl UnwindSafe for AvailabilityRecord
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