#[non_exhaustive]pub struct ApprovalUpdatedParams {
pub session_id: String,
pub view_cursor: String,
pub source_range: SourceRange,
pub approval_id: String,
pub current_requirement_id: ApprovalRequirementRef,
pub subject: ApprovalSubject,
pub available_choices: Vec<ApprovalChoice>,
pub change: ApprovalChange,
pub subagent_origin: Option<ApprovalSubagentOrigin>,
}Expand description
approval/updated params: the refreshed pending view plus one change.
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§view_cursor: String§source_range: SourceRange§approval_id: String§current_requirement_id: ApprovalRequirementRef§subject: ApprovalSubject§available_choices: Vec<ApprovalChoice>§change: ApprovalChange§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 ApprovalUpdatedParams
impl Clone for ApprovalUpdatedParams
Source§impl Debug for ApprovalUpdatedParams
impl Debug for ApprovalUpdatedParams
Source§impl<'de> Deserialize<'de> for ApprovalUpdatedParams
impl<'de> Deserialize<'de> for ApprovalUpdatedParams
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 ApprovalUpdatedParams
Source§impl PartialEq for ApprovalUpdatedParams
impl PartialEq for ApprovalUpdatedParams
Source§impl Serialize for ApprovalUpdatedParams
impl Serialize for ApprovalUpdatedParams
impl StructuralPartialEq for ApprovalUpdatedParams
Auto Trait Implementations§
impl Freeze for ApprovalUpdatedParams
impl RefUnwindSafe for ApprovalUpdatedParams
impl Send for ApprovalUpdatedParams
impl Sync for ApprovalUpdatedParams
impl Unpin for ApprovalUpdatedParams
impl UnsafeUnpin for ApprovalUpdatedParams
impl UnwindSafe for ApprovalUpdatedParams
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