Skip to main content

Authorize

Type Alias Authorize 

Source
pub type Authorize = Arc<dyn Fn(&Caller, &Tool, Value, Option<&OrgId>) -> Result<Value> + Send + Sync>;
Expand description

May caller run tool with these arguments? Returns the arguments to use (an org-scoped endpoint pins org), or the refusal, reported as a tool error. scope is the org of an /orgs/<org>/... endpoint.

Aliased Typeยง

pub struct Authorize { /* private fields */ }