[][src]Struct gitlab::types::Issue

pub struct Issue {
    pub id: IssueId,
    pub iid: IssueInternalId,
    pub project_id: ProjectId,
    pub title: String,
    pub description: Option<String>,
    pub state: IssueState,
    pub created_at: DateTime<Utc>,
    pub updated_at: DateTime<Utc>,
    pub closed_at: Option<DateTime<Utc>>,
    pub closed_by: Option<UserBasic>,
    pub labels: Vec<String>,
    pub milestone: Option<Milestone>,
    pub author: UserBasic,
    pub assignee: Option<UserBasic>,
    pub assignees: Option<Vec<UserBasic>>,
    pub subscribed: Option<bool>,
    pub time_stats: IssuableTimeStats,
    pub user_notes_count: u64,
    pub upvotes: u64,
    pub downvotes: u64,
    pub due_date: Option<NaiveDate>,
    pub confidential: bool,
    pub discussion_locked: Option<bool>,
    pub web_url: String,
    // some fields omitted
}

An issue on a project.

Fields

id: IssueId

The ID of the issue.

iid: IssueInternalId

The user-visible ID of the issue.

project_id: ProjectId

The ID of the project.

title: String

The title of the issue.

description: Option<String>

The description of the issue.

state: IssueState

The state of the issue.

created_at: DateTime<Utc>

When the issue was created.

updated_at: DateTime<Utc>

When the issue was last updated.

closed_at: Option<DateTime<Utc>>

When the issue was closed, if closed.

closed_by: Option<UserBasic>

The user that closed the issue.

labels: Vec<String>

The labels attached to the issue.

milestone: Option<Milestone>

The milestone of the issue.

author: UserBasic

The author of the issue.

assignee: Option<UserBasic>

The assignee of the issue.

assignees: Option<Vec<UserBasic>>

The assignees of the issue.

subscribed: Option<bool>

Whether the current user is subscribed or not. GitLab does not include this in responses with lists of issues but does on an individual issue.

time_stats: IssuableTimeStats

Time estimates.

user_notes_count: u64

The number of comments on the issue.

upvotes: u64

The number of upvotes for the issue.

downvotes: u64

The number of downvotes against the issue.

due_date: Option<NaiveDate>

When the issue is due.

confidential: bool

Whether the issue is confidential or not.

discussion_locked: Option<bool>

Whether the discussion has been locked.

web_url: String

The URL of the issue.

Trait Implementations

impl Clone for Issue[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Issue[src]

impl Serialize for Issue[src]

impl<'de> Deserialize<'de> for Issue[src]

Auto Trait Implementations

impl Send for Issue

impl Sync for Issue

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

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

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

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

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T