#[non_exhaustive]pub struct ApprovalSubject {
pub kind: String,
pub command: Option<String>,
pub workspace_root: Option<String>,
pub stages: Option<Vec<ApprovalStage>>,
pub tool_name: Option<String>,
pub path: Option<String>,
pub access: Option<String>,
pub host: Option<String>,
pub port: Option<u16>,
pub protocol: Option<String>,
pub target: Option<String>,
pub origin: Option<ApprovalOrigin>,
}Expand description
Open approval subject union. Unknown kinds are rendered generically and never auto-approved by clients.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: StringOpen discriminator: shell | fileAccess | network | unixSocket | process | tool.
command: Option<String>§workspace_root: Option<String>§stages: Option<Vec<ApprovalStage>>§tool_name: Option<String>§path: Option<String>§access: Option<String>§host: Option<String>§port: Option<u16>§protocol: Option<String>§target: Option<String>§origin: Option<ApprovalOrigin>Implementations§
Source§impl ApprovalSubject
The ApprovalSubject.kind wire words — one source for the session-view fold
that writes them and every client that inverts them.
impl ApprovalSubject
The ApprovalSubject.kind wire words — one source for the session-view fold
that writes them and every client that inverts them.
pub const KIND_SHELL: &'static str = "shell"
pub const KIND_FILE_ACCESS: &'static str = "fileAccess"
pub const KIND_NETWORK: &'static str = "network"
pub const KIND_UNIX_SOCKET: &'static str = "unixSocket"
pub const KIND_PROCESS: &'static str = "process"
pub const KIND_TOOL: &'static str = "tool"
Sourcepub const ACCESS_READ: &'static str = "read"
pub const ACCESS_READ: &'static str = "read"
access wire words (fileAccess reads/writes; process control).
pub const ACCESS_WRITE: &'static str = "write"
pub const ACCESS_CONTROL: &'static str = "control"
Trait Implementations§
Source§impl Clone for ApprovalSubject
impl Clone for ApprovalSubject
Source§impl Debug for ApprovalSubject
impl Debug for ApprovalSubject
Source§impl<'de> Deserialize<'de> for ApprovalSubject
impl<'de> Deserialize<'de> for ApprovalSubject
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
impl Eq for ApprovalSubject
Source§impl PartialEq for ApprovalSubject
impl PartialEq for ApprovalSubject
Source§impl Serialize for ApprovalSubject
impl Serialize for ApprovalSubject
impl StructuralPartialEq for ApprovalSubject
Auto Trait Implementations§
impl Freeze for ApprovalSubject
impl RefUnwindSafe for ApprovalSubject
impl Send for ApprovalSubject
impl Sync for ApprovalSubject
impl Unpin for ApprovalSubject
impl UnsafeUnpin for ApprovalSubject
impl UnwindSafe for ApprovalSubject
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