(&self)
| 50 | } |
| 51 | |
| 52 | pub fn icon(&self) -> &'static str { |
| 53 | match self { |
| 54 | PermissionType::ReadFile => "[R]", |
| 55 | PermissionType::WriteFile => "[W]", |
| 56 | PermissionType::Edit => "[E]", |
| 57 | PermissionType::ExecuteCommand => "[X]", |
| 58 | PermissionType::Bash => "[!]", |
| 59 | PermissionType::NetworkRequest => "[N]", |
| 60 | PermissionType::Glob => "[G]", |
| 61 | PermissionType::Grep => "[S]", |
| 62 | PermissionType::List => "[L]", |
| 63 | PermissionType::Task => "[T]", |
| 64 | PermissionType::WebFetch => "[F]", |
| 65 | PermissionType::WebSearch => "[Q]", |
| 66 | PermissionType::CodeSearch => "[C]", |
| 67 | PermissionType::ExternalDirectory => "[D]", |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | #[derive(Clone, Debug)] |
nothing calls this directly
no outgoing calls
no test coverage detected