Skip to main content

EntryCommand

Enum EntryCommand 

Source
#[non_exhaustive]
pub enum EntryCommand {
Show 15 variants
#[non_exhaustive]
Add(AddArgs),
#[non_exhaustive]
Show(u32),
#[non_exhaustive]
Search(String),
#[non_exhaustive]
SetStatus(u32, Status),
#[non_exhaustive]
Comment(u32, Text),
#[non_exhaustive]
Ask(u32, Text),
#[non_exhaustive]
Wait(u32, Option<Duration>),
#[non_exhaustive]
Propose(u32, AddArgs),
#[non_exhaustive]
Resolve(u32, DecisionState, Option<Text>),
#[non_exhaustive]
Describe(u32, Text),
#[non_exhaustive]
Rename(u32, String),
#[non_exhaustive]
Tag(u32, Vec<TagChange>),
#[non_exhaustive]
Link(u32, Vec<u32>, Vec<RepoLink>),
#[non_exhaustive]
Context,
#[non_exhaustive]
Project(Option<ProjectChange>),
}
Expand description

What to do to which entry.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

#[non_exhaustive]
Add(AddArgs)

add: create an entry.

§

#[non_exhaustive]
Show(u32)

show ID.

§

#[non_exhaustive]
Search(String)

search WORDS….

§

#[non_exhaustive]
SetStatus(u32, Status)

start|park|done|todo ID.

§

#[non_exhaustive]
Comment(u32, Text)

comment ID TEXT…|-.

§

#[non_exhaustive]
Ask(u32, Text)

ask ID TEXT…|-: a question to the user, parking the task.

§

#[non_exhaustive]
Wait(u32, Option<Duration>)

wait ID [--timeout MINUTES]: block until a person answers, or the time is up (None: never).

§

#[non_exhaustive]
Propose(u32, AddArgs)

propose ID … TITLE…: a proposed decision for the task.

§

#[non_exhaustive]
Resolve(u32, DecisionState, Option<Text>)

accept ID [TEXT…|-] / reject ID TEXT…|-: a decision accepted or rejected, and why.

§

#[non_exhaustive]
Describe(u32, Text)

describe ID TEXT…|-.

§

#[non_exhaustive]
Rename(u32, String)

rename ID TITLE….

§

#[non_exhaustive]
Tag(u32, Vec<TagChange>)

tag ID +TAG|-TAG…: tags added and removed, in order.

link ID OTHER…: ids here, and REPO#ID in the project’s other repositories.

§

#[non_exhaustive]
Context

context.

§

#[non_exhaustive]
Project(Option<ProjectChange>)

project: show the project’s description and this repository’s role, or change the project.

Trait Implementations§

Source§

impl Debug for EntryCommand

Source§

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

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

impl Eq for EntryCommand

Source§

impl PartialEq for EntryCommand

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for EntryCommand

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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, 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, !>

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.