pub struct ActivityDescriptor {
pub name: String,
pub input_schema_json: String,
pub output_schema_json: String,
}Expand description
Initial worker advertisement. A registration scopes this stream and worker to a SET of (namespace) correctness boundaries, one task_queue pool/flavour lane within each, and an optional node locality; server-side partitioning and authorization are handled by the server worker endpoint.
The dimensions are disjoint. namespaces is the SET of correctness/isolation
boundaries the worker is authorized for: a workflow’s activities only ever
reach workers whose set includes the workflow’s namespace, so crossing it is a
bug, never a tuning choice. task_queue is the pool/flavour selector within
each namespace (norn / claude / cpu / gpu); a task_queue miss is a liveness
issue, never a correctness one. node is an OPTIONAL locality affinity (a
locality, not a process: many workers may share a node id) used to filter
within a pool; absent means the worker is reachable for unpinned dispatches.
activity_type (carried separately at registration) is NOT a routing
dimension — it is matched inside a pool after the pool is selected.
Fields§
§name: StringActivity type whose concrete serde types produced these schemas.
input_schema_json: StringCanonical JSON Schema accepted by the worker.
output_schema_json: StringCanonical JSON Schema produced by the worker.
Trait Implementations§
Source§impl Clone for ActivityDescriptor
impl Clone for ActivityDescriptor
Source§fn clone(&self) -> ActivityDescriptor
fn clone(&self) -> ActivityDescriptor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ActivityDescriptor
impl Debug for ActivityDescriptor
Source§impl Default for ActivityDescriptor
impl Default for ActivityDescriptor
Source§impl<'de> Deserialize<'de> for ActivityDescriptor
impl<'de> Deserialize<'de> for ActivityDescriptor
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>,
impl Eq for ActivityDescriptor
Source§impl Hash for ActivityDescriptor
impl Hash for ActivityDescriptor
Source§impl Message for ActivityDescriptor
impl Message for ActivityDescriptor
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for ActivityDescriptor
impl PartialEq for ActivityDescriptor
Source§impl Serialize for ActivityDescriptor
impl Serialize for ActivityDescriptor
impl StructuralPartialEq for ActivityDescriptor
Auto Trait Implementations§
impl Freeze for ActivityDescriptor
impl RefUnwindSafe for ActivityDescriptor
impl Send for ActivityDescriptor
impl Sync for ActivityDescriptor
impl Unpin for ActivityDescriptor
impl UnsafeUnpin for ActivityDescriptor
impl UnwindSafe for ActivityDescriptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request