pub struct StartWorkflowRequest {
pub namespace: String,
pub workflow_type: String,
pub input: Option<Payload>,
pub routing_key: Option<String>,
pub task_queue: Option<String>,
pub display_name: Option<String>,
}Fields§
§namespace: String§workflow_type: String§input: Option<Payload>§routing_key: Option<String>R-4 steered start: caller-chosen routing key. When set, the start is steered to shard_for(routing_key)’s owner (forwarded there if this node is not the owner). Empty/absent keeps the unsteered (R-1 remint) behaviour.
task_queue: Option<String>Optional task queue this workflow defaults its activities to (the namespace x task_queue targeting story). When set, it is recorded durably on the start so it survives replay/failover. Empty/absent keeps the namespace’s default queue.
display_name: Option<String>Optional operator-facing display name for the run (#211). A LABEL over the UUID identity, never an address: nothing resolves a workflow by name. When set, it is recorded durably (as the aion.display_name search attribute) in the same atomic append as the start. ABSENT (this optional field unset) starts the run unnamed; a PRESENT but blank (empty or whitespace-only) value is REFUSED with invalid_input rather than reinterpreted as unnamed, so leave the field unset to mean “no name” — do not send “”. This differs from routing_key and task_queue above, where empty does mean “not selected”.
Implementations§
Source§impl StartWorkflowRequest
impl StartWorkflowRequest
Sourcepub fn routing_key(&self) -> &str
pub fn routing_key(&self) -> &str
Returns the value of routing_key, or the default value if routing_key is unset.
Sourcepub fn task_queue(&self) -> &str
pub fn task_queue(&self) -> &str
Returns the value of task_queue, or the default value if task_queue is unset.
Sourcepub fn display_name(&self) -> &str
pub fn display_name(&self) -> &str
Returns the value of display_name, or the default value if display_name is unset.
Trait Implementations§
Source§impl Clone for StartWorkflowRequest
impl Clone for StartWorkflowRequest
Source§fn clone(&self) -> StartWorkflowRequest
fn clone(&self) -> StartWorkflowRequest
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 StartWorkflowRequest
impl Debug for StartWorkflowRequest
Source§impl Default for StartWorkflowRequest
impl Default for StartWorkflowRequest
Source§impl<'de> Deserialize<'de> for StartWorkflowRequest
impl<'de> Deserialize<'de> for StartWorkflowRequest
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 StartWorkflowRequest
Source§impl Hash for StartWorkflowRequest
impl Hash for StartWorkflowRequest
Source§impl Message for StartWorkflowRequest
impl Message for StartWorkflowRequest
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 StartWorkflowRequest
impl PartialEq for StartWorkflowRequest
Source§impl Serialize for StartWorkflowRequest
impl Serialize for StartWorkflowRequest
impl StructuralPartialEq for StartWorkflowRequest
Auto Trait Implementations§
impl Freeze for StartWorkflowRequest
impl RefUnwindSafe for StartWorkflowRequest
impl Send for StartWorkflowRequest
impl Sync for StartWorkflowRequest
impl Unpin for StartWorkflowRequest
impl UnsafeUnpin for StartWorkflowRequest
impl UnwindSafe for StartWorkflowRequest
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