[−][src]Struct gitlab::types::Issue
An issue on a project.
Fields
id: IssueIdThe ID of the issue.
iid: IssueInternalIdThe user-visible ID of the issue.
project_id: ProjectIdThe ID of the project.
title: StringThe title of the issue.
description: Option<String>The description of the issue.
state: IssueStateThe 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.
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: IssuableTimeStatsTime estimates.
user_notes_count: u64The number of comments on the issue.
merge_requests_count: u64The number of merge requests referencing the issue.
upvotes: u64The number of upvotes for the issue.
downvotes: u64The number of downvotes against the issue.
due_date: Option<NaiveDate>When the issue is due.
has_tasks: Option<bool>Whether the issue is has a non-empty task list. GitLab does not include this in issue references.
confidential: boolWhether the issue is confidential or not.
discussion_locked: Option<bool>Whether the discussion has been locked.
web_url: StringThe URL of the issue.
Implementations
impl Issue[src]
pub fn new(project_id: ProjectId, title: String, author: UserBasic) -> Issue[src]
Creates a new blank issue: it needs at least the ProjectId, title and author ProjectId and author are mandatory in the Issue struct itself title is mandatory for the new issue API of Gitlab
pub fn with_iid(mut self: Self, iid: IssueInternalId) -> Issue[src]
Complements the issue with optional parameter: iid
pub fn with_description(mut self: Self, description: String) -> Issue[src]
Complements the issue with optional parameter: description
pub fn with_confidential(mut self: Self, confidential: bool) -> Issue[src]
Complements the issue with optional parameter: confidential
pub fn with_assignees(mut self: Self, assignees: Vec<UserBasic>) -> Issue[src]
Complements the issue with optional parameter: assignees
pub fn with_milestone(mut self: Self, milestone: Milestone) -> Issue[src]
Complements the issue with optional parameter: milestone
pub fn with_labels(mut self: Self, labels: Vec<String>) -> Issue[src]
Complements the issue with optional parameter: labels
pub fn with_created_at(mut self: Self, created_at: DateTime<Utc>) -> Issue[src]
Complements the issue with optional parameter: created_at
pub fn with_due_date(mut self: Self, due_date: NaiveDate) -> Issue[src]
Complements the issue with optional parameter: due_date
pub fn has_links(&self) -> bool[src]
Trait Implementations
impl Clone for Issue[src]
impl Debug for Issue[src]
impl<'de> Deserialize<'de> for Issue[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Serialize for Issue[src]
Auto Trait Implementations
impl RefUnwindSafe for Issue[src]
impl Send for Issue[src]
impl Sync for Issue[src]
impl Unpin for Issue[src]
impl UnwindSafe for Issue[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,