Skip to main content

WorkflowModel

Struct WorkflowModel 

Source
pub struct WorkflowModel {
Show 14 fields pub rpc_method: String, pub registered_name: String, pub input_type: ProtoType, pub output_type: ProtoType, pub task_queue: Option<String>, pub id_expression: Option<Vec<IdTemplateSegment>>, pub id_reuse_policy: Option<IdReusePolicy>, pub execution_timeout: Option<Duration>, pub run_timeout: Option<Duration>, pub task_timeout: Option<Duration>, pub aliases: Vec<String>, pub attached_signals: Vec<SignalRef>, pub attached_queries: Vec<QueryRef>, pub attached_updates: Vec<UpdateRef>,
}

Fields§

§rpc_method: String

Rpc method name as declared in proto (e.g. "RunJob").

§registered_name: String

Cross-language workflow registration name. Defaults to "<package>.<Service>/<rpc>" when WorkflowOptions.name is empty.

§input_type: ProtoType§output_type: ProtoType§task_queue: Option<String>

Effective task queue: WorkflowOptions.task_queue if set, else the service-level default. None means neither was supplied — render will require the caller to pass one.

§id_expression: Option<Vec<IdTemplateSegment>>

Parsed form of cludden’s id Go-template expression, compiled at parse time against the workflow’s input message descriptor. Each segment is either a literal piece of the template or a reference to a field on the input message. Render emits a private <wf>_id(input: &Input) -> String function that walks the segments via format!, so the substitution happens at codegen time — no runtime template engine required.

§id_reuse_policy: Option<IdReusePolicy>§execution_timeout: Option<Duration>§run_timeout: Option<Duration>§task_timeout: Option<Duration>§aliases: Vec<String>

Additional names this workflow is also registered under.

§attached_signals: Vec<SignalRef>§attached_queries: Vec<QueryRef>§attached_updates: Vec<UpdateRef>

Trait Implementations§

Source§

impl Debug for WorkflowModel

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.