Skip to main content

served_statuses

Function served_statuses 

Source
pub fn served_statuses() -> [String; 3]
Expand description

Statuses a public page can have. archived joins published; scheduled is included only so a page whose go-live time has passed is served before the sweep flips it — visible_now decides. expired is excluded so takedown still 404s. Owned Strings for the is_in binds.

The query side of “is this page served”: filter by these, then keep the rows visible_now accepts. Anything that links to or lists served pages uses the pair, so it agrees with what a visitor gets.