pub enum GuardianApprovalReviewAction {
Command {
command: String,
cwd: AbsolutePathBuf,
source: GuardianCommandSource,
},
Execve {
argv: Vec<String>,
cwd: AbsolutePathBuf,
program: String,
source: GuardianCommandSource,
},
ApplyPatch {
cwd: AbsolutePathBuf,
files: Vec<AbsolutePathBuf>,
},
NetworkAccess {
host: String,
port: u16,
protocol: NetworkApprovalProtocol,
target: String,
},
McpToolCall {
connector_id: Option<String>,
connector_name: Option<String>,
server: String,
tool_name: String,
tool_title: Option<String>,
},
RequestPermissions {
permissions: RequestPermissionProfile,
reason: Option<String>,
},
}Expand description
GuardianApprovalReviewAction
JSON schema
{
"oneOf": [
{
"title": "CommandGuardianApprovalReviewAction",
"type": "object",
"required": [
"command",
"cwd",
"source",
"type"
],
"properties": {
"command": {
"type": "string"
},
"cwd": {
"$ref": "#/definitions/AbsolutePathBuf"
},
"source": {
"$ref": "#/definitions/GuardianCommandSource"
},
"type": {
"title": "CommandGuardianApprovalReviewActionType",
"type": "string",
"enum": [
"command"
]
}
}
},
{
"title": "ExecveGuardianApprovalReviewAction",
"type": "object",
"required": [
"argv",
"cwd",
"program",
"source",
"type"
],
"properties": {
"argv": {
"type": "array",
"items": {
"type": "string"
}
},
"cwd": {
"$ref": "#/definitions/AbsolutePathBuf"
},
"program": {
"type": "string"
},
"source": {
"$ref": "#/definitions/GuardianCommandSource"
},
"type": {
"title": "ExecveGuardianApprovalReviewActionType",
"type": "string",
"enum": [
"execve"
]
}
}
},
{
"title": "ApplyPatchGuardianApprovalReviewAction",
"type": "object",
"required": [
"cwd",
"files",
"type"
],
"properties": {
"cwd": {
"$ref": "#/definitions/AbsolutePathBuf"
},
"files": {
"type": "array",
"items": {
"$ref": "#/definitions/AbsolutePathBuf"
}
},
"type": {
"title": "ApplyPatchGuardianApprovalReviewActionType",
"type": "string",
"enum": [
"applyPatch"
]
}
}
},
{
"title": "NetworkAccessGuardianApprovalReviewAction",
"type": "object",
"required": [
"host",
"port",
"protocol",
"target",
"type"
],
"properties": {
"host": {
"type": "string"
},
"port": {
"type": "integer",
"format": "uint16",
"minimum": 0.0
},
"protocol": {
"$ref": "#/definitions/NetworkApprovalProtocol"
},
"target": {
"type": "string"
},
"type": {
"title": "NetworkAccessGuardianApprovalReviewActionType",
"type": "string",
"enum": [
"networkAccess"
]
}
}
},
{
"title": "McpToolCallGuardianApprovalReviewAction",
"type": "object",
"required": [
"server",
"toolName",
"type"
],
"properties": {
"connectorId": {
"type": [
"string",
"null"
]
},
"connectorName": {
"type": [
"string",
"null"
]
},
"server": {
"type": "string"
},
"toolName": {
"type": "string"
},
"toolTitle": {
"type": [
"string",
"null"
]
},
"type": {
"title": "McpToolCallGuardianApprovalReviewActionType",
"type": "string",
"enum": [
"mcpToolCall"
]
}
}
},
{
"title": "RequestPermissionsGuardianApprovalReviewAction",
"type": "object",
"required": [
"permissions",
"type"
],
"properties": {
"permissions": {
"$ref": "#/definitions/RequestPermissionProfile"
},
"reason": {
"type": [
"string",
"null"
]
},
"type": {
"title": "RequestPermissionsGuardianApprovalReviewActionType",
"type": "string",
"enum": [
"requestPermissions"
]
}
}
}
]
}Variants§
Command
CommandGuardianApprovalReviewAction
Execve
ExecveGuardianApprovalReviewAction
ApplyPatch
ApplyPatchGuardianApprovalReviewAction
NetworkAccess
NetworkAccessGuardianApprovalReviewAction
McpToolCall
McpToolCallGuardianApprovalReviewAction
Fields
RequestPermissions
RequestPermissionsGuardianApprovalReviewAction
Trait Implementations§
Source§impl Clone for GuardianApprovalReviewAction
impl Clone for GuardianApprovalReviewAction
Source§fn clone(&self) -> GuardianApprovalReviewAction
fn clone(&self) -> GuardianApprovalReviewAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GuardianApprovalReviewAction
impl Debug for GuardianApprovalReviewAction
Source§impl<'de> Deserialize<'de> for GuardianApprovalReviewAction
impl<'de> Deserialize<'de> for GuardianApprovalReviewAction
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
Auto Trait Implementations§
impl Freeze for GuardianApprovalReviewAction
impl RefUnwindSafe for GuardianApprovalReviewAction
impl Send for GuardianApprovalReviewAction
impl Sync for GuardianApprovalReviewAction
impl Unpin for GuardianApprovalReviewAction
impl UnsafeUnpin for GuardianApprovalReviewAction
impl UnwindSafe for GuardianApprovalReviewAction
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