pub struct LinkedTicket {
pub id: String,
pub subject: String,
pub status: String,
pub url: String,
pub author: Option<String>,
pub assignee: Option<String>,
pub time_estimate: Option<u32>,
pub time_spent: Option<u32>,
}Expand description
A lightweight reference to an external tracker ticket linked to a MR.
This struct is the only data type exchanged between the orchestrator
(gitlab-tracker) and any tracker plugin (Redmine, Jira, Trello, …).
It is intentionally flat and display-oriented — the orchestrator does not
need to know anything about the internal data model of the tracker.
Fields§
§id: StringNumeric or alphanumeric identifier as shown in the tracker UI (e.g. “1234”, “PROJ-42”).
subject: StringShort title / subject of the ticket.
status: StringHuman-readable status label (e.g. “In Progress”, “Resolved”).
url: StringDirect URL to open the ticket in a browser.
Original creator of the ticket (display name).
None when not provided by the tracker.
assignee: Option<String>User currently assigned to the ticket (display name).
None when unassigned or not supported by the tracker.
time_estimate: Option<u32>Estimated time to complete the ticket, in seconds (e.g. from Redmine /estimate).
None when not set or not supported by the tracker.
time_spent: Option<u32>Time already spent on the ticket, in seconds (e.g. from Redmine time entries).
None when not set or not supported by the tracker.
Trait Implementations§
Source§impl Clone for LinkedTicket
impl Clone for LinkedTicket
Source§fn clone(&self) -> LinkedTicket
fn clone(&self) -> LinkedTicket
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more