pub enum Operation {
None,
Intro,
Push(usize, Job),
Modify(usize, Job),
Delete(Positions),
Import(String, usize, TagSet),
Configure(Option<TagSet>, Properties),
List(Positions, Range, Option<TagSet>),
Report(Positions, Range, Option<TagSet>),
ExportCSV(Positions, Range, Option<TagSet>, Columns),
ListTags(TagSet),
ShowConfiguration(Configuration),
}Expand description
Catches what to change the jobs within the database.
Variants§
None
No operation
Intro
No change
Push(usize, Job)
Push a new Job into database.
Modify(usize, Job)
Change an existing Job at index usize into database but return error if message is missing.
Delete(Positions)
Remove jobs from
Import(String, usize, TagSet)
Import file
Configure(Option<TagSet>, Properties)
Change configuration
List(Positions, Range, Option<TagSet>)
List jobs
Report(Positions, Range, Option<TagSet>)
Report jobs
ExportCSV(Positions, Range, Option<TagSet>, Columns)
Export jobs
ListTags(TagSet)
List all available tags.
ShowConfiguration(Configuration)
Show the database configuration.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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