Skip to main content

validate_scope

Function validate_scope 

Source
pub fn validate_scope(scope: &str) -> Result<()>
Expand description

Validate a visibility scope against the closed VALID_SCOPES set (Task 1.5). Enforced on write paths that accept an explicit scope parameter. Memories with no scope metadata are treated as private by the query layer without needing explicit validation here.