Skip to main content

PendingItem

Struct PendingItem 

Source
pub struct PendingItem {
    pub marker: PendingListMarker,
    pub id: String,
    pub state: PendingState,
    pub gate_type: Option<String>,
    pub in_progress: bool,
    pub text: String,
    pub continuation: String,
}
Expand description

A parsed pending list item.

Fields§

§marker: PendingListMarker

Parent list marker. - is the default; ordered lists store the parsed source ordinal and are renumbered canonically on render.

§id: String

Pending item id (no # prefix). Generated ids are lowercase base32; custom ids and nested subtask ids may be hyphenated ASCII alphanumeric strings and are normalized to lowercase.

§state: PendingState

Lifecycle state encoded by the GFM checkbox.

§gate_type: Option<String>

Optional typed gate (e.g., “release” for [/release], “deploy” for [/deploy]). Only meaningful when state == Gated. None means untyped [/].

§in_progress: bool

Visible, ephemeral marker for the item currently being worked from an active queue head. Renders immediately after the checkbox.

§text: String

Bullet text after the hash prefix.

§continuation: String

Raw indented continuation lines that belong to this item (for nested lists, dependency notes, etc.). Stored without the leading item line.

Implementations§

Source§

impl PendingItem

Source

pub fn render(&self) -> String

Render to canonical - [<state>] [#id] text form. Typed gates render as [/release], [/deploy], etc.

Source

pub fn is_done(&self) -> bool

Convenience: true when state is Done ([x]).

Trait Implementations§

Source§

impl Clone for PendingItem

Source§

fn clone(&self) -> PendingItem

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 PendingItem

Source§

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

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

impl Eq for PendingItem

Source§

impl PartialEq for PendingItem

Source§

fn eq(&self, other: &PendingItem) -> 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 PendingItem

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<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> 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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.