Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
48
impl 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
new
Function · 0.85
Tested by
no test coverage detected