pub struct CapabilityRequest {
pub id: String,
pub capability: String,
pub payload: Value,
pub timeout_ms: Option<u64>,
pub trace_id: Option<String>,
pub span_id: Option<String>,
pub parent_span_id: Option<String>,
pub trace_depth: Option<u8>,
pub caller_app: Option<String>,
}Expand description
A service capability request dispatched to a provider app. Used for both FFI (serialized as JSON bytes) and IPC (serialized as JSON).
Fields§
§id: StringRequest correlation ID (UUID)
capability: StringTarget capability name (dot-notation, e.g., “terminal.create_session”)
payload: ValueRequest payload as JSON value
timeout_ms: Option<u64>Optional per-capability timeout in milliseconds (falls back to 30s default)
trace_id: Option<String>Root trace ID grouping all spans in one logical invocation.
span_id: Option<String>Span ID of the caller (used as parent_span_id in sub-invocations).
parent_span_id: Option<String>Parent span ID for this invocation (None if root).
trace_depth: Option<u8>Current nesting depth (0 for root, max 16).
caller_app: Option<String>Manifest name of the app that originated this request. Populated by the
dispatcher when a builtin app invokes a capability via the SDK. None
when the call originates from an external transport (HTTP, WS) — in
that case the request is owned by the platform itself.
Trait Implementations§
Source§impl Clone for CapabilityRequest
impl Clone for CapabilityRequest
Source§fn clone(&self) -> CapabilityRequest
fn clone(&self) -> CapabilityRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more