pub struct LinkedTicket {Show 15 fields
pub schema_version: u32,
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>,
pub time_remaining: Option<u32>,
pub tracker_type: Option<String>,
pub priority: Option<String>,
pub version: Option<String>,
pub start_date: Option<String>,
pub done_ratio: Option<u32>,
}Fields§
§schema_version: u32Schema version — used to detect stale cached tickets after a struct upgrade.
Defaults to 0 when absent (pre-versioning cache entries), which guarantees
they are always invalidated on first run after this field was introduced.
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.
time_remaining: Option<u32>Remaining time (ETC) in seconds as reported by the tracker.
None when not set or not supported by the tracker.
tracker_type: Option<String>Type / category of the ticket as defined by the tracker (e.g. “Bug”, “Evolution”).
The label is tracker-specific and may be in any language — do not hardcode colour logic
on its value; use label_colors in redmine.yaml instead.
None when not provided by the tracker.
priority: Option<String>Priority label of the ticket as defined by the tracker (e.g. “High”, “Low”).
Same caveat as tracker_type — colour mapping is user-configurable.
None when not provided by the tracker.
version: Option<String>Target version / sprint / release the ticket is assigned to (e.g. “v1.2.3”, “Sprint 42”).
None when not set or not supported by the tracker.
start_date: Option<String>Start date of the ticket in YYYY-MM-DD format.
None when not set or not supported by the tracker.
done_ratio: Option<u32>Completion percentage as reported by the tracker (0–100).
None when not set or not supported by the tracker.
Implementations§
Source§impl LinkedTicket
impl LinkedTicket
Sourcepub fn diff(&self, new: &LinkedTicket) -> Vec<TicketChange>
pub fn diff(&self, new: &LinkedTicket) -> Vec<TicketChange>
Computes the list of tracked field changes between self (old) and new.
Returns an empty Vec when nothing changed. The caller (orchestrator) should
iterate over the result and dispatch notifications for each entry.
§Design
This is a pure function — no side effects, no I/O. Adding a new tracked field
only requires adding a comparison block here and a variant to TicketChange.
The orchestrator and notification plugin remain unchanged for existing fields.
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