pub struct CycleReasonPrompt {
pub schedule: CycleScheduleId,
pub action: LifecycleAction,
pub cycle: Option<GeneratedCycleId>,
pub buffer: String,
}Expand description
The reason a lifecycle action records, being typed.
The action and its target are captured when the prompt opens, so confirming it cannot drift onto another row: the prompt carries the schedule and the instance it is about.
Fields§
§schedule: CycleScheduleIdThe schedule the action names.
action: LifecycleActionThe action that records the reason.
cycle: Option<GeneratedCycleId>The instance the action names, when it names one.
buffer: StringThe reason being typed.
Trait Implementations§
Source§impl Clone for CycleReasonPrompt
impl Clone for CycleReasonPrompt
Source§impl Debug for CycleReasonPrompt
impl Debug for CycleReasonPrompt
impl Eq for CycleReasonPrompt
Source§impl PartialEq for CycleReasonPrompt
impl PartialEq for CycleReasonPrompt
impl StructuralPartialEq for CycleReasonPrompt
Auto Trait Implementations§
impl Freeze for CycleReasonPrompt
impl RefUnwindSafe for CycleReasonPrompt
impl Send for CycleReasonPrompt
impl Sync for CycleReasonPrompt
impl Unpin for CycleReasonPrompt
impl UnsafeUnpin for CycleReasonPrompt
impl UnwindSafe for CycleReasonPrompt
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more