Skip to main content

canonical_response

Function canonical_response 

Source
pub fn canonical_response(raw: &str) -> Result<String, String>
Expand description

The canonical form of a response stance, or why it is refused.

Either best-effort or a plural-correct day count: 1 day, <n> days, 1 business day, or <n> business days, with n a u32 above one written without a sign or a leading zero. The grammar is narrow because the rendered sentence is a public promise, and only a value this renderer can state exactly may reach it. An empty value reads as the compiled default.

ยงErrors

The refusal text, naming the key and every accepted form.