pub struct PermissionRequestRead {
pub intention: String,
pub kind: PermissionRequestReadKind,
pub path: String,
pub request_sandbox_bypass: Option<bool>,
pub request_sandbox_bypass_reason: Option<String>,
pub tool_call_id: Option<String>,
}Expand description
File or directory read permission request
Fields§
§intention: StringHuman-readable description of why the file is being read
kind: PermissionRequestReadKindPermission kind discriminator
path: StringPath of the file or directory being read
request_sandbox_bypass: Option<bool>True when the model has requested to run this search outside the sandbox (it set requestSandboxBypass: true and the host opted in via sandbox.allowBypass). This is a request, not a grant: the search runs unsandboxed only if the user approves this permission request. Hosts should highlight the elevated risk in the approval UI.
request_sandbox_bypass_reason: Option<String>Model-provided justification for the sandbox-bypass request. Only meaningful when requestSandboxBypass is true.
tool_call_id: Option<String>Tool call ID that triggered this permission request
Trait Implementations§
Source§impl Clone for PermissionRequestRead
impl Clone for PermissionRequestRead
Source§fn clone(&self) -> PermissionRequestRead
fn clone(&self) -> PermissionRequestRead
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 PermissionRequestRead
impl Debug for PermissionRequestRead
Source§impl Default for PermissionRequestRead
impl Default for PermissionRequestRead
Source§fn default() -> PermissionRequestRead
fn default() -> PermissionRequestRead
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PermissionRequestRead
impl<'de> Deserialize<'de> for PermissionRequestRead
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 PermissionRequestRead
impl RefUnwindSafe for PermissionRequestRead
impl Send for PermissionRequestRead
impl Sync for PermissionRequestRead
impl Unpin for PermissionRequestRead
impl UnsafeUnpin for PermissionRequestRead
impl UnwindSafe for PermissionRequestRead
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