pub struct PermissionRequestUrl {
pub intention: String,
pub kind: PermissionRequestUrlKind,
pub request_sandbox_bypass: Option<bool>,
pub request_sandbox_bypass_reason: Option<String>,
pub tool_call_id: Option<String>,
pub url: String,
}Expand description
URL access permission request
Fields§
§intention: StringHuman-readable description of why the URL is being accessed
kind: PermissionRequestUrlKindPermission kind discriminator
request_sandbox_bypass: Option<bool>True when this URL fetch is requesting to bypass the sandbox network policy: either the model set requestSandboxBypass: true, or the tool re-issued the request as an interactive bypass after the network policy denied the approved URL (host opted in via sandbox.allowBypass). This is a request, not a grant: the fetch runs 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
url: StringURL to be fetched
Trait Implementations§
Source§impl Clone for PermissionRequestUrl
impl Clone for PermissionRequestUrl
Source§fn clone(&self) -> PermissionRequestUrl
fn clone(&self) -> PermissionRequestUrl
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 PermissionRequestUrl
impl Debug for PermissionRequestUrl
Source§impl Default for PermissionRequestUrl
impl Default for PermissionRequestUrl
Source§fn default() -> PermissionRequestUrl
fn default() -> PermissionRequestUrl
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PermissionRequestUrl
impl<'de> Deserialize<'de> for PermissionRequestUrl
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 PermissionRequestUrl
impl RefUnwindSafe for PermissionRequestUrl
impl Send for PermissionRequestUrl
impl Sync for PermissionRequestUrl
impl Unpin for PermissionRequestUrl
impl UnsafeUnpin for PermissionRequestUrl
impl UnwindSafe for PermissionRequestUrl
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