#[non_exhaustive]pub struct ApprovalRequestParams {Show 16 fields
pub session_id: String,
pub approval_id: String,
pub turn_id: String,
pub task_id: String,
pub item_id: String,
pub tool_call_id: String,
pub tool_name: String,
pub raw_args: String,
pub view_cursor: String,
pub source_range: SourceRange,
pub subject: ApprovalSubject,
pub current_requirement_id: ApprovalRequirementRef,
pub available_choices: Vec<ApprovalChoice>,
pub protected_write: bool,
pub judge_escalated: bool,
pub subagent_origin: Option<ApprovalSubagentOrigin>,
}Expand description
Full params shared by approval/request and approval/requested.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session_id: String§approval_id: String§turn_id: String§task_id: String§item_id: String§tool_call_id: String§tool_name: String§raw_args: String§view_cursor: String§source_range: SourceRange§subject: ApprovalSubject§current_requirement_id: ApprovalRequirementRef§available_choices: Vec<ApprovalChoice>§protected_write: bool§judge_escalated: bool§subagent_origin: Option<ApprovalSubagentOrigin>Present only for a child (native subagent) approval projected onto the parent session’s plane; parent-own approvals omit it.
Trait Implementations§
Source§impl Clone for ApprovalRequestParams
impl Clone for ApprovalRequestParams
Source§impl Debug for ApprovalRequestParams
impl Debug for ApprovalRequestParams
Source§impl<'de> Deserialize<'de> for ApprovalRequestParams
impl<'de> Deserialize<'de> for ApprovalRequestParams
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
impl Eq for ApprovalRequestParams
Source§impl PartialEq for ApprovalRequestParams
impl PartialEq for ApprovalRequestParams
Source§impl Serialize for ApprovalRequestParams
impl Serialize for ApprovalRequestParams
impl StructuralPartialEq for ApprovalRequestParams
Auto Trait Implementations§
impl Freeze for ApprovalRequestParams
impl RefUnwindSafe for ApprovalRequestParams
impl Send for ApprovalRequestParams
impl Sync for ApprovalRequestParams
impl Unpin for ApprovalRequestParams
impl UnsafeUnpin for ApprovalRequestParams
impl UnwindSafe for ApprovalRequestParams
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