pub enum Command {
Show 15 variants
Intro,
Start {
start: DateTime,
message: Option<Option<String>>,
tags: Option<TagSet>,
},
Add {
start: DateTime,
end: DateTime,
message: Option<Option<String>>,
tags: Option<TagSet>,
},
Back {
start: DateTime,
message: Option<Option<String>>,
tags: Option<TagSet>,
},
BackAdd {
start: DateTime,
end: DateTime,
message: Option<Option<String>>,
tags: Option<TagSet>,
},
End {
end: DateTime,
message: Option<Option<String>>,
tags: Option<TagSet>,
},
List {
range: Range,
tags: Option<TagSet>,
},
Report {
range: Range,
tags: Option<TagSet>,
},
ExportCSV {
range: Range,
tags: Option<TagSet>,
columns: String,
},
ShowConfiguration,
SetConfiguration {
tags: Option<TagSet>,
update: Properties,
},
LegacyImport {
filename: String,
},
ListTags {
range: Range,
tags: Option<TagSet>,
},
Edit {
pos: Option<usize>,
start: Option<DateTime>,
end: EndOrDuration,
message: Option<Option<String>>,
tags: Option<TagSet>,
},
Delete {
range: Range,
tags: Option<TagSet>,
},
}Expand description
Commands which can be applied to jobber’s database.
Variants§
Intro
Start
Start a new job by specifying start time if there is no open job-
Add
Add a new job by specifying start and end time if there is no open job.
Back
Like Start but re-use message an tags of previous job.
BackAdd
Like Add but re-use message an tags of previous job.
End
End existing job by giving time.
List
List jobs
Report
Report jobs
ExportCSV
Report jobs as CSV
ShowConfiguration
Display whole configuration
SetConfiguration
change configuration
LegacyImport
Import CSV database of legacy Ruby jobber version
ListTags
List all known tags
Edit
Edit an existing job.
Delete
Delete an existing job.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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<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