Skip to main content

plan_reply

Function plan_reply 

Source
pub fn plan_reply(
    door: ApprovalDoor,
    options: &[ApprovalOption],
    choice: &ApprovalChoice,
) -> Result<(String, Value), ApprovalResolveError>
Expand description

Translate one caller’s choice into the token and envelope a request’s own door accepts.

Kept free of the registry so the whole translation is testable from a request’s options alone.