Skip to main content

render_expiring_line

Function render_expiring_line 

Source
pub fn render_expiring_line(entry: &ExpiringEntry, palette: Palette) -> String
Expand description

One line of order list --expiring-in: order_id profile Nd not_after identifiers, plus a replaced-by= suffix where something has.

Two things are painted, both semantic. The days-left column, because “act now” versus “soon” is the one thing an operator scans this listing for; and the supersession suffix, because its presence is the good news — which is also why the rows with no suffix are the ones left plain. The thresholds are the terminal’s own and match /ui/expiring’s badges.