resolve_own

Function resolve_own 

Source
fn resolve_own(
    state: &AppState,
    block_id: Option<String>,
    pick: impl Fn(&AgentContext) -> Option<String>,
) -> Result<String, Response>
Expand description

Resolve a target id from the caller’s own context (via block_id), using pick to select the field. Returns the route’s error response on failure (missing block_id, unresolvable block, or the field is None).