pub struct EventAdd<'a> {
pub event_name: Cow<'a, str>,
pub location: Option<Cow<'a, str>>,
pub event_days: Vec<DayOfWeek>,
pub start_hr: TimeType,
pub start_min: TimeType,
pub end_hr: TimeType,
pub end_min: TimeType,
}Expand description
A struct that represents an event to be added.
Prefer using the corresponding EventAddBuilder to build this object.
Fields§
§event_name: Cow<'a, str>The name of the event. This is required.
location: Option<Cow<'a, str>>The location of the event. This is optional.
event_days: Vec<DayOfWeek>The days that this event will be held.
start_hr: TimeTypeThe hour start time. For example, if the event starts at
3:50 PM, use 15 (since 12 + 3 = 15).
start_min: TimeTypeThe minute start time. For example, if the event starts at
3:50 PM, use 50.
end_hr: TimeTypeThe hour end time. For example, if the event ends at 3:50 PM,
use 15 (since 12 + 3 = 15).
end_min: TimeTypeThe minute end time. For example, if the event ends at 3:50 PM,
use 50.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for EventAdd<'a>
impl<'a> RefUnwindSafe for EventAdd<'a>
impl<'a> Send for EventAdd<'a>
impl<'a> Sync for EventAdd<'a>
impl<'a> Unpin for EventAdd<'a>
impl<'a> UnsafeUnpin for EventAdd<'a>
impl<'a> UnwindSafe for EventAdd<'a>
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