pub struct PermissionsConfig {
pub enabled: bool,
pub resolve_commands: bool,
pub audit_enabled: bool,
pub audit_directory: String,
pub log_allowed_commands: bool,
pub log_denied_commands: bool,
pub log_permission_prompts: bool,
pub cache_enabled: bool,
pub cache_ttl_seconds: u64,
}Expand description
Permission system configuration - Controls command resolution, audit logging, and caching
Fields§
§enabled: boolEnable the enhanced permission system (resolver + audit logger + cache)
resolve_commands: boolEnable command resolution to actual paths (helps identify suspicious commands)
audit_enabled: boolEnable audit logging of all permission decisions
audit_directory: StringDirectory for audit logs (created if not exists) Defaults to ~/.vtcode/audit
log_allowed_commands: boolLog allowed commands to audit trail
log_denied_commands: boolLog denied commands to audit trail
log_permission_prompts: boolLog permission prompts (when user is asked for confirmation)
cache_enabled: boolEnable permission decision caching to avoid redundant evaluations
cache_ttl_seconds: u64Cache time-to-live in seconds (how long to cache decisions) Default: 300 seconds (5 minutes)
Trait Implementations§
Source§impl Clone for PermissionsConfig
impl Clone for PermissionsConfig
Source§fn clone(&self) -> PermissionsConfig
fn clone(&self) -> PermissionsConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PermissionsConfig
impl Debug for PermissionsConfig
Source§impl Default for PermissionsConfig
impl Default for PermissionsConfig
Source§impl<'de> Deserialize<'de> for PermissionsConfig
impl<'de> Deserialize<'de> for PermissionsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for PermissionsConfig
impl JsonSchema for PermissionsConfig
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for PermissionsConfig
impl RefUnwindSafe for PermissionsConfig
impl Send for PermissionsConfig
impl Sync for PermissionsConfig
impl Unpin for PermissionsConfig
impl UnwindSafe for PermissionsConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more