pub struct Issue {
Show 14 fields pub index: usize, pub poster_id: usize, pub title: String, pub content: String, pub reference: Option<String>, pub milestone: Option<String>, pub state: OpenCloseState, pub is_locked: bool, pub created: String, pub updated: String, pub closed: Option<String>, pub labels: Option<Vec<String>>, pub reactions: Option<Vec<Reaction>>, pub assignees: Option<Vec<String>>,
}
Expand description

Issues associated to a repository within a forge (Gitea, GitLab, etc.).

Fields

index: usize

Unique identifier, relative to the repository

poster_id: usize

Unique identifier of the user who authored the issue.

title: String

Short description displayed as the title.

content: String

Long, multiline, description

reference: Option<String>

Target branch in the repository.

NOTE: Actual property is called “ref” but it is a keyword in Rust so we are using “reference”. However, “reference” will automatically be renamed to “ref” while serializing and vice versa

milestone: Option<String>

Name of the milestone

state: OpenCloseState

state of the issue

is_locked: bool

A locked issue can only be modified by privileged users

created: String

Creation time

updated: String

Last update time

closed: Option<String>

The last time ‘state’ changed to ‘closed’

labels: Option<Vec<String>>

List of labels.

reactions: Option<Vec<Reaction>>

List of reactions

assignees: Option<Vec<String>>

List of assignees.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.