Struct gitlab::types::Issue

source ·
pub struct Issue {
Show 26 fields 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 merge_requests_count: u64, pub upvotes: u64, pub downvotes: u64, pub due_date: Option<NaiveDate>, pub has_tasks: Option<bool>, pub confidential: bool, pub discussion_locked: Option<bool>, pub web_url: String, /* private fields */
}
👎Deprecated since 0.1609.0: define deserialization types in client code
Expand description

An issue on a project.

Fields§

§id: IssueId
👎Deprecated since 0.1609.0: define deserialization types in client code

The ID of the issue.

§iid: IssueInternalId
👎Deprecated since 0.1609.0: define deserialization types in client code

The user-visible ID of the issue.

§project_id: ProjectId
👎Deprecated since 0.1609.0: define deserialization types in client code

The ID of the project.

§title: String
👎Deprecated since 0.1609.0: define deserialization types in client code

The title of the issue.

§description: Option<String>
👎Deprecated since 0.1609.0: define deserialization types in client code

The description of the issue.

§state: IssueState
👎Deprecated since 0.1609.0: define deserialization types in client code

The state of the issue.

§created_at: DateTime<Utc>
👎Deprecated since 0.1609.0: define deserialization types in client code

When the issue was created.

§updated_at: DateTime<Utc>
👎Deprecated since 0.1609.0: define deserialization types in client code

When the issue was last updated.

§closed_at: Option<DateTime<Utc>>
👎Deprecated since 0.1609.0: define deserialization types in client code

When the issue was closed, if closed.

§closed_by: Option<UserBasic>
👎Deprecated since 0.1609.0: define deserialization types in client code

The user that closed the issue.

§labels: Vec<String>
👎Deprecated since 0.1609.0: define deserialization types in client code

The labels attached to the issue.

§milestone: Option<Milestone>
👎Deprecated since 0.1609.0: define deserialization types in client code

The milestone of the issue.

§author: UserBasic
👎Deprecated since 0.1609.0: define deserialization types in client code

The author of the issue.

§assignee: Option<UserBasic>
👎Deprecated since 0.1609.0: define deserialization types in client code

The assignee of the issue.

§assignees: Option<Vec<UserBasic>>
👎Deprecated since 0.1609.0: define deserialization types in client code

The assignees of the issue.

§subscribed: Option<bool>
👎Deprecated since 0.1609.0: define deserialization types in client code

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
👎Deprecated since 0.1609.0: define deserialization types in client code

Time estimates.

§user_notes_count: u64
👎Deprecated since 0.1609.0: define deserialization types in client code

The number of comments on the issue.

§merge_requests_count: u64
👎Deprecated since 0.1609.0: define deserialization types in client code

The number of merge requests referencing the issue.

§upvotes: u64
👎Deprecated since 0.1609.0: define deserialization types in client code

The number of upvotes for the issue.

§downvotes: u64
👎Deprecated since 0.1609.0: define deserialization types in client code

The number of downvotes against the issue.

§due_date: Option<NaiveDate>
👎Deprecated since 0.1609.0: define deserialization types in client code

When the issue is due.

§has_tasks: Option<bool>
👎Deprecated since 0.1609.0: define deserialization types in client code

Whether the issue is has a non-empty task list. GitLab does not include this in issue references.

§confidential: bool
👎Deprecated since 0.1609.0: define deserialization types in client code

Whether the issue is confidential or not.

§discussion_locked: Option<bool>
👎Deprecated since 0.1609.0: define deserialization types in client code

Whether the discussion has been locked.

§web_url: String
👎Deprecated since 0.1609.0: define deserialization types in client code

The URL of the issue.

Implementations§

source§

impl Issue

source

pub fn new(project_id: ProjectId, title: String, author: UserBasic) -> Issue

👎Deprecated since 0.1609.0: define deserialization types in client code

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

source

pub fn with_iid(self, iid: IssueInternalId) -> Issue

👎Deprecated since 0.1609.0: define deserialization types in client code

Complements the issue with optional parameter: iid

source

pub fn with_description(self, description: String) -> Issue

👎Deprecated since 0.1609.0: define deserialization types in client code

Complements the issue with optional parameter: description

source

pub fn with_confidential(self, confidential: bool) -> Issue

👎Deprecated since 0.1609.0: define deserialization types in client code

Complements the issue with optional parameter: confidential

source

pub fn with_assignees(self, assignees: Vec<UserBasic>) -> Issue

👎Deprecated since 0.1609.0: define deserialization types in client code

Complements the issue with optional parameter: assignees

source

pub fn with_milestone(self, milestone: Milestone) -> Issue

👎Deprecated since 0.1609.0: define deserialization types in client code

Complements the issue with optional parameter: milestone

source

pub fn with_labels(self, labels: Vec<String>) -> Issue

👎Deprecated since 0.1609.0: define deserialization types in client code

Complements the issue with optional parameter: labels

source

pub fn with_created_at(self, created_at: DateTime<Utc>) -> Issue

👎Deprecated since 0.1609.0: define deserialization types in client code

Complements the issue with optional parameter: created_at

source

pub fn with_due_date(self, due_date: NaiveDate) -> Issue

👎Deprecated since 0.1609.0: define deserialization types in client code

Complements the issue with optional parameter: due_date

👎Deprecated since 0.1609.0: define deserialization types in client code

Trait Implementations§

source§

impl Clone for Issue

source§

fn clone(&self) -> Issue

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Issue

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Issue

source§

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 Serialize for Issue

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for Issue

§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

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