pub struct Issue {
Show 28 fields pub id: u64, pub parent: Option<IssueEssentials>, pub project: ProjectEssentials, pub tracker: TrackerEssentials, pub status: IssueStatusEssentials, pub priority: IssuePriorityEssentials, pub author: UserEssentials, pub assigned_to: Option<AssigneeEssentials>, pub category: Option<IssueCategoryEssentials>, pub version: Option<VersionEssentials>, pub subject: Option<String>, pub description: Option<String>, pub start_date: Option<Date>, pub due_date: Option<Date>, pub closed_on: Option<OffsetDateTime>, pub done_ratio: u64, pub custom_fields: Vec<CustomFieldEssentialsWithValue>, pub estimated_hours: Option<f64>, pub created_on: OffsetDateTime, pub updated_on: OffsetDateTime, pub attachments: Option<Vec<Attachment>>, pub relations: Option<Vec<IssueRelation>>, pub journals: Option<Vec<Journal>>, pub children: Option<Vec<ChildIssue>>, pub watchers: Option<Vec<UserEssentials>>, pub spent_hours: Option<f64>, pub total_spent_hours: Option<f64>, pub total_estimated_hours: Option<f64>, /* private fields */
}
Expand description

a type for issue to use as an API return type

alternatively you can use your own type limited to the fields you need

Fields

id: u64

numeric id

parent: Option<IssueEssentials>

parent issue

project: ProjectEssentials

the project of the issue

tracker: TrackerEssentials

the tracker of the issue

status: IssueStatusEssentials

the issue status

priority: IssuePriorityEssentials

the issue priority

author: UserEssentials

the issue author

assigned_to: Option<AssigneeEssentials>

the user or group the issue is assigned to

category: Option<IssueCategoryEssentials>

the issue category

version: Option<VersionEssentials>

the version the issue is assigned to

subject: Option<String>

the issue subject

description: Option<String>

the issue description

start_date: Option<Date>

the start date for the issue

due_date: Option<Date>

the due date for the issue

closed_on: Option<OffsetDateTime>

the time when the issue was closed

done_ratio: u64

the percentage done

custom_fields: Vec<CustomFieldEssentialsWithValue>

custom fields with values

estimated_hours: Option<f64>

estimated hours it will take to implement this isssue

created_on: OffsetDateTime

The time when this issue was created

updated_on: OffsetDateTime

The time when this issue was last updated

attachments: Option<Vec<Attachment>>

issue attachments (only when include parameter is used)

relations: Option<Vec<IssueRelation>>

issue relations (only when include parameter is used)

journals: Option<Vec<Journal>>

journal entries (comments and changes), only when include parameter is used

children: Option<Vec<ChildIssue>>

child issues (only when include parameter is used)

watchers: Option<Vec<UserEssentials>>

watchers

spent_hours: Option<f64>

the hours spent

total_spent_hours: Option<f64>

the total hours spent on this and sub-tasks

total_estimated_hours: Option<f64>

the total hours estimated on this and sub-tasks

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

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

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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

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