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
sourceimpl<'de> Deserialize<'de> for Issue
impl<'de> Deserialize<'de> for Issue
sourcefn 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
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more