pub struct PermissionRequest { /* private fields */ }Expand description
Runtime-owned normalized permission request.
Implementations§
Source§impl PermissionRequest
impl PermissionRequest
pub fn tool_call_id(&self) -> &ToolCallId
pub fn tool_name(&self) -> &ToolName
pub fn reason(&self) -> Option<&str>
pub fn requested(&self) -> &[RequestedCapability]
Sourcepub fn requests_network(&self) -> bool
pub fn requests_network(&self) -> bool
Returns whether this request asks for network capability.
Sourcepub fn is_action_review(&self) -> bool
pub fn is_action_review(&self) -> bool
Returns whether this request reviews an action without granting a capability.
pub fn action(&self) -> &PermissionedAction
Sourcepub fn fingerprint(&self) -> String
pub fn fingerprint(&self) -> String
Returns the stable fingerprint for the exact action and capability set.
Sourcepub fn approval_id(&self) -> String
pub fn approval_id(&self) -> String
Returns the stable identifier used to correlate a host response.
Trait Implementations§
Source§impl Clone for PermissionRequest
impl Clone for PermissionRequest
Source§impl Debug for PermissionRequest
impl Debug for PermissionRequest
impl Eq for PermissionRequest
Source§impl PartialEq for PermissionRequest
impl PartialEq for PermissionRequest
impl StructuralPartialEq for PermissionRequest
Auto Trait Implementations§
impl Forget for PermissionRequest
impl Freeze for PermissionRequest
impl Move for PermissionRequest
impl RefUnwindSafe for PermissionRequest
impl Send for PermissionRequest
impl Sync for PermissionRequest
impl Unpin for PermissionRequest
impl UnsafeUnpin for PermissionRequest
impl UnwindSafe for PermissionRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.