1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//// Result of a single workflow activation, reported from lang to core
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WfActivationCompletion {
    /// The token from the workflow activation you are completing
    #[prost(bytes = "vec", tag = "1")]
    pub task_token: ::prost::alloc::vec::Vec<u8>,
    #[prost(oneof = "wf_activation_completion::Status", tags = "2, 3")]
    pub status: ::core::option::Option<wf_activation_completion::Status>,
}
/// Nested message and enum types in `WFActivationCompletion`.
pub mod wf_activation_completion {
    #[derive(::derive_more::From, Clone, PartialEq, ::prost::Oneof)]
    pub enum Status {
        #[prost(message, tag = "2")]
        Successful(super::Success),
        #[prost(message, tag = "3")]
        Failed(super::Failure),
    }
}
//// Successful workflow activation with a list of commands generated by the workflow execution
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Success {
    /// A list of commands to send back to the temporal server
    #[prost(message, repeated, tag = "1")]
    pub commands: ::prost::alloc::vec::Vec<super::workflow_commands::WorkflowCommand>,
}
//// Failure to activate or execute a workflow
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Failure {
    #[prost(message, optional, tag = "1")]
    pub failure: ::core::option::Option<super::common::UserCodeFailure>,
}