pub struct ApprovalDecideParams {
pub session_id: String,
pub command_id: String,
pub approval_id: String,
pub requirement_id: ApprovalRequirementRef,
pub choice_id: String,
pub feedback: Option<String>,
}Expand description
approval/decide params: the decision. A standard command — requires the
session loaded on this host, requires commandId, durable intake before
ack, value-identical replay.
Fields§
§session_id: StringThe target session.
command_id: StringThe idempotency handle (UUIDv7).
approval_id: StringThe approval being decided.
requirement_id: ApprovalRequirementRefMust equal the approval’s currentRequirementId. The multi-stage race
guard: a decision aimed at stage 1 can never accidentally satisfy stage
2, and a stale value is -32053.
choice_id: StringOne of the current availableChoices; else -32052.
feedback: Option<String>Free-text guidance delivered to the model with the denial. Only valid on
choices with acceptsFeedback. Never persisted in the durable audit
record (live steer only), so it is absent from approval/resolved.
Omitted and explicit null both mean “no feedback”.
Trait Implementations§
Source§impl Clone for ApprovalDecideParams
impl Clone for ApprovalDecideParams
Source§impl Debug for ApprovalDecideParams
impl Debug for ApprovalDecideParams
Source§impl<'de> Deserialize<'de> for ApprovalDecideParams
impl<'de> Deserialize<'de> for ApprovalDecideParams
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 ApprovalDecideParams
Source§impl PartialEq for ApprovalDecideParams
impl PartialEq for ApprovalDecideParams
Source§impl Serialize for ApprovalDecideParams
impl Serialize for ApprovalDecideParams
impl StructuralPartialEq for ApprovalDecideParams
Auto Trait Implementations§
impl Forget for ApprovalDecideParams
impl Freeze for ApprovalDecideParams
impl Move for ApprovalDecideParams
impl RefUnwindSafe for ApprovalDecideParams
impl Send for ApprovalDecideParams
impl Sync for ApprovalDecideParams
impl Unpin for ApprovalDecideParams
impl UnsafeUnpin for ApprovalDecideParams
impl UnwindSafe for ApprovalDecideParams
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