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
sourceimpl 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
sourceimpl Clone for AvailabilityRecord
impl Clone for AvailabilityRecord
sourcefn clone(&self) -> AvailabilityRecord
fn clone(&self) -> AvailabilityRecord
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for AvailabilityRecord
impl Debug for AvailabilityRecord
sourceimpl Default for AvailabilityRecord
impl Default for AvailabilityRecord
sourcefn default() -> AvailabilityRecord
fn default() -> AvailabilityRecord
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AvailabilityRecord
impl<'de> Deserialize<'de> for AvailabilityRecord
sourcefn 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
sourceimpl PartialEq<AvailabilityRecord> for AvailabilityRecord
impl PartialEq<AvailabilityRecord> for AvailabilityRecord
sourcefn eq(&self, other: &AvailabilityRecord) -> bool
fn eq(&self, other: &AvailabilityRecord) -> bool
sourceimpl Serialize for AvailabilityRecord
impl Serialize for AvailabilityRecord
impl StructuralPartialEq for AvailabilityRecord
Auto Trait Implementations
impl RefUnwindSafe for AvailabilityRecord
impl Send for AvailabilityRecord
impl Sync for AvailabilityRecord
impl Unpin for AvailabilityRecord
impl UnwindSafe for AvailabilityRecord
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more