pub struct RequestPermissionParams {
pub session_id: String,
pub tool_call: ToolCallRef,
pub options: Vec<PermissionOption>,
}Expand description
Params of an outbound session/request_permission request.
Fields§
§session_id: StringThe session the tool call belongs to.
tool_call: ToolCallRefThe tool call awaiting approval.
options: Vec<PermissionOption>The choices offered to the user.
Trait Implementations§
Source§impl Clone for RequestPermissionParams
impl Clone for RequestPermissionParams
Source§fn clone(&self) -> RequestPermissionParams
fn clone(&self) -> RequestPermissionParams
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 RequestPermissionParams
impl Debug for RequestPermissionParams
Source§impl<'de> Deserialize<'de> for RequestPermissionParams
impl<'de> Deserialize<'de> for RequestPermissionParams
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
Source§impl PartialEq for RequestPermissionParams
impl PartialEq for RequestPermissionParams
Source§impl Serialize for RequestPermissionParams
impl Serialize for RequestPermissionParams
impl StructuralPartialEq for RequestPermissionParams
Auto Trait Implementations§
impl Freeze for RequestPermissionParams
impl RefUnwindSafe for RequestPermissionParams
impl Send for RequestPermissionParams
impl Sync for RequestPermissionParams
impl Unpin for RequestPermissionParams
impl UnsafeUnpin for RequestPermissionParams
impl UnwindSafe for RequestPermissionParams
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