pub enum ToolkitsAnswer {
Unenrolled,
Shelf {
toolkits: Vec<ToolkitLine>,
},
Refused {
refusal: Box<AxError>,
},
}Expand description
The shelf, or the reason there is no shelf to show.
Exhaustive rather than a list that is empty in three different
senses: “you have not given this city a key yet”, “the broker is
unreachable” and “the broker has nothing for you” are three
different things for a person to do next, and an empty Vec says
all three at once.
Variants§
Unenrolled
No project key has been enrolled, so there is nobody to ask. The page shows the key field, and this is not a failure: it is the first step, and drawing it as an error would tell a new person that something broke.
Shelf
What the broker published, in the order it published it.
The broker’s order rather than a best-first one: somebody scanning this list twice finds the same application in the same place.
Fields
toolkits: Vec<ToolkitLine>Refused
The broker was asked and did not answer. The whole refusal travels, so the page draws the city’s wording rather than inventing a second one.