MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / new

Method new

crates/opencode-permission/src/engine.rs:49–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47
48impl PermissionEngine {
49 pub fn new() -> Self {
50 Self {
51 pending: HashMap::new(),
52 approved: HashMap::new(),
53 }
54 }
55
56 pub fn pending(&self) -> &HashMap<String, HashMap<String, PendingPermission>> {
57 &self.pending

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected