pub enum Standing {
Absent,
Awaiting {
consent_url: String,
},
Connected {
alias: String,
},
Refused {
refusal: Box<AxError>,
},
}Expand description
Where one application stands for this city.
Four states, each a different next action: connect it, finish the consent page that is already open, nothing, or read why the last attempt failed. Every one of them is the broker’s own reading rather than something this city remembered - the page a person left open yesterday is not evidence that they finished with it.
Variants§
Absent
Nothing here has connected it.
Awaiting
A consent page exists and the person has not finished with it.
The url travels so the client can open it, and keeps travelling so the client can offer it again: a blocked popup and a closed tab both leave a person who needs this link a second time, and a url held only at the moment the command answered would be gone.
Connected
Connected, under the account name the broker returned. The name is shown because one person can hold two accounts on the same application and “connected” alone would not say which.
Refused
The last attempt failed and the broker still says so.