pub fn canonical_scope(raw: &str) -> Result<String, String>Expand description
The canonical form of a security scope, or why it is refused.
One trimmed paragraph. The value is prose the operator writes, so the grammar refuses only what breaks the policy it renders into: a blank line, which would end the paragraph; a control character other than a line feed; a line that opens a Markdown heading, or that underlines one; and the comment delimiters the policy’s span markers use. Emptiness is not a refusal: it renders nothing.
§Errors
The refusal text, naming the key and what it accepts.