Skip to main content

Module scopes

Module scopes 

Source
Expand description

Scope parsing and matching.

Scopes are colon-delimited strings like read:arxiv or write:notes:draft. * matches a single segment; the bare * matches everything.

  "read:arxiv"   matches "read:arxiv"
  "read:*"       matches "read:arxiv", "read:notes"
  "*"            matches "anything:goes:here"
  "*:papers"     matches "read:papers", "write:papers"

Structs§

Scope
A validated scope string.

Enums§

ScopeError

Constants§

MAX_SCOPE_LEN
Maximum scope length, in bytes. Constrained by the 1-byte length prefix in the wire format.