MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / set_permission

Method set_permission

crates/opencode-session/src/session.rs:582–585  ·  view source on GitHub ↗

Set the permission ruleset

(&mut self, permission: PermissionRuleset)

Source from the content-addressed store, hash-verified

580
581 /// Set the permission ruleset
582 pub fn set_permission(&mut self, permission: PermissionRuleset) {
583 self.permission = Some(permission);
584 self.touch();
585 }
586
587 /// Set the revert information
588 pub fn set_revert(&mut self, revert: SessionRevert) {

Callers 1

set_session_permissionFunction · 0.80

Calls 4

publish_session_eventMethod · 0.80
touchMethod · 0.45
get_mutMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected