Skip to main content

Message

Enum Message 

Source
pub enum Message {
Show 247 variants AutostartEnabled, AutostartEnabledUser, AutostartDisabled, AutostartAlreadyDisabled, AutostartEnableFailed(String), AutostartDisableFailed(String), AutostartStatus(String), AutostartRequiresAdmin, AutostartCheckingAlternative, TaskCreated, TaskUpdated, TaskNotFound, TaskUpdateFailed, TasksDeletedCount(usize), TasksNotFoundForDate(String), TasksNotFoundSad, TasksHeader, TasksDiscoverySummary { incomplete: usize, jira: usize, gitlab: usize, }, TasksDiscoverySeparator, TasksDiscoverySearchingIncomplete, TasksDiscoveryFetchingExternal, NoTaskIdsProvided, TasksNotFoundForIds(Vec<i32>), TasksToBeDeleted, ConfirmDeleteTask, ConfirmDeleteTasks(usize), ConfirmDeleteAllTodayTasks(usize), ConfirmDeleteAllTodayTasksFinal, NoTasksForToday, TaskNotFoundWithId(i32), CurrentTaskState, TaskEditPreview, ConfirmTaskUpdate, NoChangesDetected, NoTasksSelected, SelectTasksToEdit, EditingTask(String), TaskUpdatedWithName(String), TaskSkippedNoChanges(String), TaskEditingCompleted, PromptTaskNameEdit, PromptTaskCommentEdit, PromptTaskCompletenessEdit, TaskCompletenessRange, WorkdayEnded, WorkdayNotFoundForDate(String), WorkdayCreateFailed, WorkdayStarting(String), WorkdayCouldNotFindAfterFinalizing(String), ConfigSaved, ConfigDeleted, ConfigParseError, ConfigSaveError, ConfigModuleGitLab, ConfigModuleJira, ConfigModuleSiServer, ConfigModuleMonitor, ConfigModuleServer, ConfigModuleProductivity, ConfigModuleTaskDiscovery, ConfigModuleJiraInbox, TaskDiscoveryIgnoreListHeader, TaskDiscoveryIgnoreListEmpty, TaskDiscoveryIgnoreNameAdded(String), TaskDiscoveryIgnoreNameExists(String), TaskDiscoveryIgnoreNamesAdded(usize), DailyReportSent(String), MonthlyReportSent(String), MonthlyReportTriggered, ReportSendFailed(String), MonthlyReportSendFailed(String), ReportHeader(String), WorkingHoursForMonth(String), ExportingData(String, String), ExportCompleted(String), ExportingAllData, TemplateCreated(String), TemplateUpdated(String), TemplateDeleted(String), TemplateNotFound(String), TemplateAlreadyExists(String), TemplateCreateFailed, NoTemplatesFound, TemplateListHeader, SelectTemplateToEdit, SelectTemplateToDelete, ConfirmDeleteTemplate(String), EditingTemplate(String), NoTemplatesMatchingQuery(String), TemplateSearchResults(String), SelectTemplateAction, PromptTemplateName, PromptTemplateTaskName, PromptTemplateComment, PromptTemplateCompleteness, CreatingTaskFromTemplate(String), SelectTemplate, CreateTemplateFirst, TagCreated(String), TagUpdated(String), TagDeleted(String), TagNotFound(String), TagAlreadyExists(String), NoTagsFound, TagListHeader, EditingTag(String), SelectTagAction, SelectTagToEdit, SelectTagToDelete, ConfirmDeleteTag(String), ConfirmDeleteTagWithTasks(String, usize), PromptTagName, PromptTagColor, NoTasksWithTag(String), TasksWithTag(String), TagsAddedToTask(String), ShortIntervalsDetected(usize, String), PromptMinWorkInterval, WorkdayUpdateFailed, PausesTitle(String), MonitorStarted { pause_threshold: u64, poll_interval: u64, activity_threshold: u64, }, MonitorExitedNormally, MonitorShuttingDown, MonitorError(String), MonitorTaskPanicked(String), PauseStarted, PauseEnded, WatcherStarted(u32), WatcherStopped(u32), WatcherNotRunning, WatcherNotRunningPidNotFound, WatcherStartingForeground, WatcherStoppingExisting(String), WatcherFailedToStopExisting(String), WatcherReceivedSigterm, WatcherReceivedSigint, WatcherReceivedCtrlC, WatcherCtrlCListenFailed(String), WatcherSignalHandlingNotSupported, DaemonModeNotSupported, FailedToGetCurrentExecutable, FailedToCreateSigtermHandler, FailedToCreateSigintHandler, UpdateAvailable { app_name: String, latest: String, }, UpdateCompleted { app_name: String, version: String, }, NoUpdateRequired, UpdateDownloadUrlNotSet, UpdateLatestTagNotFound(String), WatcherStoppingForUpdate, WatcherRestartingAfterUpdate, WatcherStoppingForConfig, WatcherRestartingAfterConfig, WatcherRestarted, WatcherRestartFailed { error: String, }, UpdateBinaryNotFoundInArchive, WrongPassword(i32), GitlabFetchFailed(String), GitlabUserIdFailed(String), JiraFetchFailed(String), SiServerConfigNotFound, SiServerSessionFailed(String), SiServerRestDatesFailed(String), SiServerRestDatesParsingFailed(String), DatabaseOperationFailed { operation: String, error: String, }, NoIdSet, FileNotFound, InvalidPidFileContent, PathConfigured, PathConfigWarning { error: String, }, PathRegistryQueryError { status: String, }, PathRegistryUpdateError { status: String, stderr: String, }, FailedToJoinPaths, FailedToExecuteRegQuery, FailedToParseRegOutput, FailedToGetPathFromReg, FailedToExecuteRegSet, FailedToOpenProcess(u32), FailedToTerminateProcess(u32), ProcessTerminationNotSupported, MonthlyProductivity(f64), LowProductivityWarning { current: f64, threshold: f64, }, ProductivityTooLowToSend { current: f64, threshold: f64, }, ManualPauseCreated { start_time: String, end_time: String, duration_minutes: u64, }, ManualPauseOverlaps { start_time: String, end_time: String, }, ManualPauseRemoved(i32), ManualPauseNotFound(i32), PromptTaskName, TaskNameMergedFromPaste, PromptTaskComment, PromptTaskCompleteness, PromptMinPauseDuration, PromptPauseThreshold, PromptPollInterval, PromptActivityThreshold, PromptMinProductivityThreshold, PromptWorkdayHours, PromptMinWorkdayFraction, PromptServerApiUrl, PromptServerAuthToken, PromptSelectModules, PromptSelectTasksToImport, PromptSelectTasksToIgnore, PromptSelectIgnoreNamesToRemove, PromptAddIgnoreName, OperationCompleted, OperationCancelled, InvalidInput, PermissionDenied, DeprecatedCommand(&'static str, &'static str), ErrorSendingEvents(String), ErrorSendingMonthlyReport(String), ErrorInRdevListener(String), ErrorRequestingRestDates(String), SelectingTask(String), JiraInboxRequiresJiraConfig, JiraInboxEmpty, JiraInboxListHeader, JiraInboxSynced { fetched: usize, new_count: usize, changed: usize, gone: usize, }, JiraInboxNewIssues(usize), JiraInboxNotFound(String), JiraInboxPinned(String), JiraInboxUnpinned(String), JiraInboxDismissed(String), JiraInboxOpened(String), JiraInboxTaken(String), JiraInboxAlreadyTaken(String, String), JiraInboxSummary { total: i64, fresh: i64, taken: i64, }, JiraInboxOpenFailed(String), PromptJiraInboxEnabled, PromptJiraInboxPollInterval, PromptJiraInboxNotify, PromptJiraInboxSortFieldId, PromptJiraInboxSortFieldLabel, PromptJiraInboxExtraFieldId, PromptJiraInboxExtraFieldLabel, MigrationsFound(usize), RunningMigration(u32, String), MigrationCompleted(u32), MigrationFailed(u32, String), AllMigrationsCompleted, DatabaseVersion(u32), DatabaseUpToDate, DatabaseNeedsUpdate, MigrationHistory, NothingToRollback, RollingBack(u32, u32), RollbackCompleted(u32),
}
Expand description

Comprehensive message enumeration for all user-facing communication.

Variants§

§

AutostartEnabled

§

AutostartEnabledUser

§

AutostartDisabled

§

AutostartAlreadyDisabled

§

AutostartEnableFailed(String)

§

AutostartDisableFailed(String)

§

AutostartStatus(String)

§

AutostartRequiresAdmin

§

AutostartCheckingAlternative

§

TaskCreated

§

TaskUpdated

§

TaskNotFound

§

TaskUpdateFailed

§

TasksDeletedCount(usize)

§

TasksNotFoundForDate(String)

§

TasksNotFoundSad

§

TasksHeader

§

TasksDiscoverySummary

Summary line before unified discovery MultiSelect

Fields

§incomplete: usize
§jira: usize
§gitlab: usize
§

TasksDiscoverySeparator

Non-selectable separator between incomplete and other items

§

TasksDiscoverySearchingIncomplete

§

TasksDiscoveryFetchingExternal

§

NoTaskIdsProvided

§

TasksNotFoundForIds(Vec<i32>)

§

TasksToBeDeleted

§

ConfirmDeleteTask

§

ConfirmDeleteTasks(usize)

§

ConfirmDeleteAllTodayTasks(usize)

§

ConfirmDeleteAllTodayTasksFinal

§

NoTasksForToday

§

TaskNotFoundWithId(i32)

§

CurrentTaskState

§

TaskEditPreview

§

ConfirmTaskUpdate

§

NoChangesDetected

§

NoTasksSelected

§

SelectTasksToEdit

§

EditingTask(String)

§

TaskUpdatedWithName(String)

§

TaskSkippedNoChanges(String)

§

TaskEditingCompleted

§

PromptTaskNameEdit

§

PromptTaskCommentEdit

§

PromptTaskCompletenessEdit

§

TaskCompletenessRange

§

WorkdayEnded

§

WorkdayNotFoundForDate(String)

§

WorkdayCreateFailed

§

WorkdayStarting(String)

§

WorkdayCouldNotFindAfterFinalizing(String)

§

ConfigSaved

§

ConfigDeleted

§

ConfigParseError

§

ConfigSaveError

§

ConfigModuleGitLab

§

ConfigModuleJira

§

ConfigModuleSiServer

§

ConfigModuleMonitor

§

ConfigModuleServer

§

ConfigModuleProductivity

§

ConfigModuleTaskDiscovery

§

ConfigModuleJiraInbox

§

TaskDiscoveryIgnoreListHeader

§

TaskDiscoveryIgnoreListEmpty

§

TaskDiscoveryIgnoreNameAdded(String)

§

TaskDiscoveryIgnoreNameExists(String)

§

TaskDiscoveryIgnoreNamesAdded(usize)

§

DailyReportSent(String)

§

MonthlyReportSent(String)

§

MonthlyReportTriggered

§

ReportSendFailed(String)

§

MonthlyReportSendFailed(String)

§

ReportHeader(String)

§

WorkingHoursForMonth(String)

§

ExportingData(String, String)

§

ExportCompleted(String)

§

ExportingAllData

§

TemplateCreated(String)

§

TemplateUpdated(String)

§

TemplateDeleted(String)

§

TemplateNotFound(String)

§

TemplateAlreadyExists(String)

§

TemplateCreateFailed

§

NoTemplatesFound

§

TemplateListHeader

§

SelectTemplateToEdit

§

SelectTemplateToDelete

§

ConfirmDeleteTemplate(String)

§

EditingTemplate(String)

§

NoTemplatesMatchingQuery(String)

§

TemplateSearchResults(String)

§

SelectTemplateAction

§

PromptTemplateName

§

PromptTemplateTaskName

§

PromptTemplateComment

§

PromptTemplateCompleteness

§

CreatingTaskFromTemplate(String)

§

SelectTemplate

§

CreateTemplateFirst

§

TagCreated(String)

§

TagUpdated(String)

§

TagDeleted(String)

§

TagNotFound(String)

§

TagAlreadyExists(String)

§

NoTagsFound

§

TagListHeader

§

EditingTag(String)

§

SelectTagAction

§

SelectTagToEdit

§

SelectTagToDelete

§

ConfirmDeleteTag(String)

§

ConfirmDeleteTagWithTasks(String, usize)

§

PromptTagName

§

PromptTagColor

§

NoTasksWithTag(String)

§

TasksWithTag(String)

§

TagsAddedToTask(String)

§

ShortIntervalsDetected(usize, String)

§

PromptMinWorkInterval

§

WorkdayUpdateFailed

§

PausesTitle(String)

§

MonitorStarted

Fields

§pause_threshold: u64
§poll_interval: u64
§activity_threshold: u64
§

MonitorExitedNormally

§

MonitorShuttingDown

§

MonitorError(String)

§

MonitorTaskPanicked(String)

§

PauseStarted

§

PauseEnded

§

WatcherStarted(u32)

§

WatcherStopped(u32)

§

WatcherNotRunning

§

WatcherNotRunningPidNotFound

§

WatcherStartingForeground

§

WatcherStoppingExisting(String)

§

WatcherFailedToStopExisting(String)

§

WatcherReceivedSigterm

§

WatcherReceivedSigint

§

WatcherReceivedCtrlC

§

WatcherCtrlCListenFailed(String)

§

WatcherSignalHandlingNotSupported

§

DaemonModeNotSupported

§

FailedToGetCurrentExecutable

§

FailedToCreateSigtermHandler

§

FailedToCreateSigintHandler

§

UpdateAvailable

Fields

§app_name: String
§latest: String
§

UpdateCompleted

Fields

§app_name: String
§version: String
§

NoUpdateRequired

§

UpdateDownloadUrlNotSet

§

UpdateLatestTagNotFound(String)

§

WatcherStoppingForUpdate

§

WatcherRestartingAfterUpdate

§

WatcherStoppingForConfig

§

WatcherRestartingAfterConfig

§

WatcherRestarted

§

WatcherRestartFailed

Fields

§error: String
§

UpdateBinaryNotFoundInArchive

§

WrongPassword(i32)

§

GitlabFetchFailed(String)

§

GitlabUserIdFailed(String)

§

JiraFetchFailed(String)

§

SiServerConfigNotFound

§

SiServerSessionFailed(String)

§

SiServerRestDatesFailed(String)

§

SiServerRestDatesParsingFailed(String)

§

DatabaseOperationFailed

Fields

§operation: String
§error: String
§

NoIdSet

§

FileNotFound

§

InvalidPidFileContent

§

PathConfigured

§

PathConfigWarning

Fields

§error: String
§

PathRegistryQueryError

Fields

§status: String
§

PathRegistryUpdateError

Fields

§status: String
§stderr: String
§

FailedToJoinPaths

§

FailedToExecuteRegQuery

§

FailedToParseRegOutput

§

FailedToGetPathFromReg

§

FailedToExecuteRegSet

§

FailedToOpenProcess(u32)

§

FailedToTerminateProcess(u32)

§

ProcessTerminationNotSupported

§

MonthlyProductivity(f64)

§

LowProductivityWarning

Fields

§current: f64
§threshold: f64
§

ProductivityTooLowToSend

Fields

§current: f64
§threshold: f64
§

ManualPauseCreated

Fields

§start_time: String
§end_time: String
§duration_minutes: u64
§

ManualPauseOverlaps

Fields

§start_time: String
§end_time: String
§

ManualPauseRemoved(i32)

§

ManualPauseNotFound(i32)

§

PromptTaskName

§

TaskNameMergedFromPaste

§

PromptTaskComment

§

PromptTaskCompleteness

§

PromptMinPauseDuration

§

PromptPauseThreshold

§

PromptPollInterval

§

PromptActivityThreshold

§

PromptMinProductivityThreshold

§

PromptWorkdayHours

§

PromptMinWorkdayFraction

§

PromptServerApiUrl

§

PromptServerAuthToken

§

PromptSelectModules

§

PromptSelectTasksToImport

§

PromptSelectTasksToIgnore

§

PromptSelectIgnoreNamesToRemove

§

PromptAddIgnoreName

§

OperationCompleted

§

OperationCancelled

§

InvalidInput

§

PermissionDenied

§

DeprecatedCommand(&'static str, &'static str)

§

ErrorSendingEvents(String)

§

ErrorSendingMonthlyReport(String)

§

ErrorInRdevListener(String)

§

ErrorRequestingRestDates(String)

§

SelectingTask(String)

§

JiraInboxRequiresJiraConfig

§

JiraInboxEmpty

§

JiraInboxListHeader

§

JiraInboxSynced

Fields

§fetched: usize
§new_count: usize
§changed: usize
§gone: usize
§

JiraInboxNewIssues(usize)

§

JiraInboxNotFound(String)

§

JiraInboxPinned(String)

§

JiraInboxUnpinned(String)

§

JiraInboxDismissed(String)

§

JiraInboxOpened(String)

§

JiraInboxTaken(String)

§

JiraInboxAlreadyTaken(String, String)

The issue already became a task: key, then the task’s name.

§

JiraInboxSummary

What the inbox holds, shown under the daily report.

Fields

§total: i64
§fresh: i64
§taken: i64
§

JiraInboxOpenFailed(String)

§

PromptJiraInboxEnabled

§

PromptJiraInboxPollInterval

§

PromptJiraInboxNotify

§

PromptJiraInboxSortFieldId

§

PromptJiraInboxSortFieldLabel

§

PromptJiraInboxExtraFieldId

§

PromptJiraInboxExtraFieldLabel

§

MigrationsFound(usize)

§

RunningMigration(u32, String)

§

MigrationCompleted(u32)

§

MigrationFailed(u32, String)

§

AllMigrationsCompleted

§

DatabaseVersion(u32)

§

DatabaseUpToDate

§

DatabaseNeedsUpdate

§

MigrationHistory

§

NothingToRollback

§

RollingBack(u32, u32)

§

RollbackCompleted(u32)

Trait Implementations§

Source§

impl Clone for Message

Source§

fn clone(&self) -> Message

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Message

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Message

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Converts a Message enum variant into human-readable text.

§Examples
use kasl::libs::messages::Message;

// Automatic formatting through Display trait
let message = Message::TaskCreated;
println!("{}", message); // "Task created successfully"

// With parameters
let date_message = Message::WorkdayStarting("2025-01-15".to_string());
println!("{}", date_message); // "Starting workday for 2025-01-15"

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more