pub struct PermissionContext {
pub agent_id: Option<String>,
pub session_id: Option<String>,
pub task_id: Option<String>,
pub tool_name: Option<String>,
pub metadata: HashMap<String, String>,
}Expand description
Context information for a permission request
Fields§
§agent_id: Option<String>Agent ID making the request
session_id: Option<String>Session ID where the request originated
task_id: Option<String>Task ID if applicable
tool_name: Option<String>Tool that triggered the request
metadata: HashMap<String, String>Additional metadata
Trait Implementations§
Source§impl Clone for PermissionContext
impl Clone for PermissionContext
Source§fn clone(&self) -> PermissionContext
fn clone(&self) -> PermissionContext
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 PermissionContext
impl Debug for PermissionContext
Source§impl Default for PermissionContext
impl Default for PermissionContext
Source§fn default() -> PermissionContext
fn default() -> PermissionContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PermissionContext
impl<'de> Deserialize<'de> for PermissionContext
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 PermissionContext
impl RefUnwindSafe for PermissionContext
impl Send for PermissionContext
impl Sync for PermissionContext
impl Unpin for PermissionContext
impl UnsafeUnpin for PermissionContext
impl UnwindSafe for PermissionContext
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