Skip to main content

IssueView

Struct IssueView 

Source
pub struct IssueView {
Show 18 fields pub assignee: Option<String>, pub created_at: Option<i32>, pub description: Option<String>, pub due_at: Option<i32>, pub ext_ref: Option<String>, pub id: Option<String>, pub identifier: Option<String>, pub kind: Option<String>, pub labels: Option<Vec<String>>, pub number: Option<i32>, pub priority: Option<String>, pub project_key: Option<String>, pub repo: Option<String>, pub source: Option<String>, pub start_at: Option<i32>, pub status: Option<String>, pub title: Option<String>, pub updated_at: Option<i32>,
}

Fields§

§assignee: Option<String>

Assignee is who holds the work — an IAM username, or the login of the FIRST assignee when a forge issue has several. Absent when nobody holds it, which is exactly the state a claim needs.

§created_at: Option<i32>

CreatedAt is when the item was opened, in unix seconds. 0 when the source gave no parseable timestamp.

§description: Option<String>

Description is the body, markdown as its author wrote it. Absent when empty.

§due_at: Option<i32>

DueAt is when the work is due, in unix seconds; absent means no due date. A forge row takes it from its MILESTONE’s due date, since a forge issue has no deadline of its own. Never before StartAt, and never past 2200-01-01.

§ext_ref: Option<String>

ExtRef anchors the item to something outside the todo — a mirrored issue ("github:owner/repo#123"), a pushed PR branch, or a record on another plane. It is the idempotency key the mirror upsert matches on. Absent when the item has no external origin.

§id: Option<String>

ID is the work item’s opaque handle, and it is NOT how you address it — ProjectKey plus Number is. Its shape says which source answered: a forge issue’s is the forge’s own numeric id in decimal, an index row’s a minted "issue_" id.

§identifier: Option<String>

Identifier is the human handle, "#" — the board and the number on it, joined. ONE spelling whichever source answered, because a list where forge rows read cli#1 and index rows read OPS-3 is two products in one list.

§kind: Option<String>

Kind is what the item IS: issue, pr or epic. Set once at create and never changed, so a row does not migrate between surfaces. Deliberately not "task" — that word is the async plane (contract.go).

§labels: Option<Vec<String>>

Labels are the item’s remaining tags, with the status and priority labels lifted OUT — a column that stayed here would render twice, once as the card’s column and once as a chip on the card. Always present; empty is [].

§number: Option<i32>

Number is the item’s number ON ITS BOARD, from 1 and monotonic there — the forge’s own issue number for a forge row, allocated inside the create transaction for an index row so it cannot race. Unique per board, never across the org.

§priority: Option<String>

Priority is urgent, high, medium, low or none. Also a label on a forge row. Never empty: "none" when nothing names one, so callers compare a value rather than test for absence.

§project_key: Option<String>

ProjectKey is the board this item is on: the repository name for a forge issue, the index board’s key otherwise. With Number it is the item’s address in every other route.

§repo: Option<String>

Repo is the git repository the item is bound to, so a repository’s Issues and PRs tabs are filters over this one table. Absent when the item is not repo-bound.

§source: Option<String>

Source is which surface OPENED it: team, git, crm, helpdesk, cms or agent. Also set once. It is the ORIGIN, not the subject — source=helpdesk is an engineering issue opened from a support escalation, not a support ticket.

§start_at: Option<i32>

StartAt is when the work starts, in unix seconds; absent means unscheduled. A forge row takes it from when the issue was opened, but only once the issue has a due date — an interval needs both ends.

§status: Option<String>

Status is the board column: backlog, todo, in_progress, done or canceled, and nothing else. On a forge row it is read off a LABEL, so relabelling in the forge web UI moves the card here and vice versa — and a CLOSED forge issue reads done whatever its labels say. Never empty: "backlog" when nothing names a column.

§title: Option<String>

Title is the item’s one-line summary.

§updated_at: Option<i32>

UpdatedAt is when it last changed, in unix seconds.

Implementations§

Trait Implementations§

Source§

impl Clone for IssueView

Source§

fn clone(&self) -> IssueView

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 IssueView

Source§

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

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

impl Default for IssueView

Source§

fn default() -> IssueView

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for IssueView

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for IssueView

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl Serialize for IssueView

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for IssueView

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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

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