pub struct SchedulerEvent {
pub id: u64,
pub resource: u64,
pub start: TimePoint,
pub end: TimePoint,
pub title: String,
pub tone: Tone,
pub done: bool,
pub locked: bool,
pub resizable: bool,
}Expand description
A bar on a Scheduler. One with no length shows as a milestone.
Fields§
§id: u64Given back when it changes.
resource: u64The row it is on.
start: TimePointWhen it begins.
end: TimePointWhen it ends.
title: StringWhat it is.
tone: ToneIts color; say what it means in the title or next to the scheduler too.
done: boolIt already happened, so it stands back.
locked: boolIt cannot be moved or resized.
resizable: boolIts length can change.
Implementations§
Trait Implementations§
Source§impl Clone for SchedulerEvent
impl Clone for SchedulerEvent
Source§fn clone(&self) -> SchedulerEvent
fn clone(&self) -> SchedulerEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SchedulerEvent
impl Debug for SchedulerEvent
impl Eq for SchedulerEvent
Source§impl PartialEq for SchedulerEvent
impl PartialEq for SchedulerEvent
impl StructuralPartialEq for SchedulerEvent
Auto Trait Implementations§
impl Freeze for SchedulerEvent
impl RefUnwindSafe for SchedulerEvent
impl Send for SchedulerEvent
impl Sync for SchedulerEvent
impl Unpin for SchedulerEvent
impl UnsafeUnpin for SchedulerEvent
impl UnwindSafe for SchedulerEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more