pub struct MigrationPostmortemTemplate {
pub incident_id: String,
pub incident_class: MigrationIncidentClass,
pub severity: MigrationIncidentSeverity,
pub comparator_id: String,
pub claim_id: String,
pub timeline_prompts: Vec<&'static str>,
pub backlog_item_ids: Vec<String>,
pub prevention_actions: Vec<String>,
}Expand description
Postmortem template linking an incident to backlog and prevention actions.
Fields§
§incident_id: StringIncident this postmortem documents.
incident_class: MigrationIncidentClassIncident class.
severity: MigrationIncidentSeverityEffective severity.
comparator_id: StringComparator id for traceability.
claim_id: StringClaim id for traceability.
timeline_prompts: Vec<&'static str>Canonical timeline prompts the author must fill in.
backlog_item_ids: Vec<String>Backlog item ids linked to this incident.
prevention_actions: Vec<String>Prevention actions seeded for the incident class plus author additions.
Implementations§
Source§impl MigrationPostmortemTemplate
impl MigrationPostmortemTemplate
Sourcepub fn for_incident(
report: &MigrationIncidentReport,
severity: MigrationIncidentSeverity,
) -> Self
pub fn for_incident( report: &MigrationIncidentReport, severity: MigrationIncidentSeverity, ) -> Self
Build a postmortem template for an incident report and severity.
Prevention actions are seeded deterministically from the incident class.
Sourcepub fn backlog_item(self, backlog_item_id: &str) -> Self
pub fn backlog_item(self, backlog_item_id: &str) -> Self
Link a backlog item id to this postmortem.
Sourcepub fn prevention_action(self, action: &str) -> Self
pub fn prevention_action(self, action: &str) -> Self
Add an extra prevention action.
Sourcepub fn links_backlog(&self) -> bool
pub fn links_backlog(&self) -> bool
Whether the postmortem links at least one backlog item.
Trait Implementations§
Source§impl Clone for MigrationPostmortemTemplate
impl Clone for MigrationPostmortemTemplate
Source§fn clone(&self) -> MigrationPostmortemTemplate
fn clone(&self) -> MigrationPostmortemTemplate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MigrationPostmortemTemplate
impl RefUnwindSafe for MigrationPostmortemTemplate
impl Send for MigrationPostmortemTemplate
impl Sync for MigrationPostmortemTemplate
impl Unpin for MigrationPostmortemTemplate
impl UnsafeUnpin for MigrationPostmortemTemplate
impl UnwindSafe for MigrationPostmortemTemplate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more