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
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
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
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> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more