#[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: StringThe owning session.
view_cursor: StringThis event’s view cursor: opaque, and strictly increasing within the session.
source_range: SourceRangeThe stored records this event was folded from: an opaque token clients must not interpret.
approval_id: StringThe approval that changed.
current_requirement_id: ApprovalRequirementRefThe requirement the next decision must target after this change; send it
as requirementId in approval/decide.
subject: ApprovalSubjectThe approval’s subject, with stages refreshed for this change.
available_choices: Vec<ApprovalChoice>The refreshed choices for the current requirement.
change: ApprovalChangeWhat changed; change.kind names the kind of change.
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 Forget for ApprovalUpdatedParams
impl Freeze for ApprovalUpdatedParams
impl Move 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