add docstrings to decision struct

This commit is contained in:
kevin zhao
2025-11-10 17:28:04 -08:00
parent 072f5c28fc
commit 73cbf5a83e

View File

@@ -7,8 +7,11 @@ use crate::error::Result;
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub enum Decision {
/// Command may run without further approval.
Allow,
/// Request explicit user approval; rejected outright when running with `approval_policy="never"`.
Prompt,
/// Command is blocked without further consideration.
Forbidden,
}