pub struct WorkerRequest {
pub version: String,
pub tenant: TenantCtx,
pub worker_id: String,
pub correlation_id: Option<String>,
pub session_id: Option<String>,
pub thread_id: Option<String>,
pub payload_json: String,
pub timestamp_utc: String,
}Expand description
Request payload for invoking a worker.
Fields§
§version: StringVersion of the worker envelope (for example 1.0).
tenant: TenantCtxTenant context propagated to the worker.
worker_id: StringIdentifier of the target worker (for example greentic-repo-assistant).
correlation_id: Option<String>Optional correlation identifier for tracing requests across transports.
session_id: Option<String>Optional session identifier for conversational workers.
thread_id: Option<String>Optional thread identifier when the worker groups messages into threads.
payload_json: StringJSON-encoded payload forwarded to the worker; the ABI treats this as opaque.
timestamp_utc: StringUTC timestamp for when the request was created (ISO8601).
Trait Implementations§
Source§impl Clone for WorkerRequest
impl Clone for WorkerRequest
Source§fn clone(&self) -> WorkerRequest
fn clone(&self) -> WorkerRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkerRequest
impl Debug for WorkerRequest
Source§impl<'de> Deserialize<'de> for WorkerRequest
impl<'de> Deserialize<'de> for WorkerRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WorkerRequest
impl PartialEq for WorkerRequest
Source§impl Serialize for WorkerRequest
impl Serialize for WorkerRequest
impl Eq for WorkerRequest
impl StructuralPartialEq for WorkerRequest
Auto Trait Implementations§
impl Freeze for WorkerRequest
impl RefUnwindSafe for WorkerRequest
impl Send for WorkerRequest
impl Sync for WorkerRequest
impl Unpin for WorkerRequest
impl UnwindSafe for WorkerRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.