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§
source§impl<'de> Deserialize<'de> for Issue
impl<'de> Deserialize<'de> for Issue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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<Issue> for Issue
impl PartialEq<Issue> for Issue
impl Eq for Issue
impl StructuralEq for Issue
impl StructuralPartialEq for Issue
Auto Trait Implementations§
impl RefUnwindSafe for Issue
impl Send for Issue
impl Sync for Issue
impl Unpin for Issue
impl UnwindSafe for Issue
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