use serde::Deserialize;
use serde::Serialize;
#[derive(Debug, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum ReviewerAuthority {
AutoReview,
Human,
None,
Unknown(String),
}
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
#[non_exhaustive]
pub struct PermissionAxes {
pub filesystem: PermissionFilesystemAxis,
pub network: PermissionNetworkAxis,
pub approval: PermissionApprovalAxis,
pub reviewer: ReviewerAuthority,
}
#[derive(Debug, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum PermissionFilesystemAxis {
Sandboxed,
Unrestricted,
Unknown(String),
}
#[derive(Debug, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum PermissionNetworkAxis {
Restricted,
ProxyOnly,
Enabled,
Unknown(String),
}
#[derive(Debug, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum PermissionApprovalAxis {
OnRequest,
PromptUnmatched,
AllowAll,
Unknown(String),
}