Public declaration syntax from forge-rs/crates/forge-auth/src/delegation.rs Original source SHA-256: b38368961e974545debd611ddd2da787ca8f9aba60248f9cdb70525330971d00 Function bodies and constant values are omitted. This is not the complete implementation. Source line 60 #[derive(Debug)] pub struct DelegationRequest<'a> { /// The parent agent's Arsenal ACT. pub parent_act: &'a AgentCapabilityToken, /// The parent agent's OAS DID (for error messages). pub parent_did: String, /// The child agent's Arsenal identity. pub child_agent_id: AgentId, /// The child agent's OAS DID (for error messages). pub child_did: String, /// The scopes requested for the child agent. /// /// Must be a subset of the parent's scopes. pub requested_scopes: ScopeSet } Source line 135 #[instrument( skip(request), fields( parent_did = %request.parent_did, child_did = %request.child_did, requested_scope_count = request.requested_scopes.len() ) )] pub fn delegate_capabilities( request: &DelegationRequest<'_>, ) -> ForgeAuthResult;