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
33
34
35
36
//// Used to report activity completion to core and to resolve the activity in a workflow activation
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ActivityResult {
    #[prost(oneof = "activity_result::Status", tags = "1, 2, 3")]
    pub status: ::core::option::Option<activity_result::Status>,
}
/// Nested message and enum types in `ActivityResult`.
pub mod activity_result {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Status {
        #[prost(message, tag = "1")]
        Completed(super::Success),
        #[prost(message, tag = "2")]
        Failed(super::Failure),
        #[prost(message, tag = "3")]
        Canceled(super::Cancelation),
    }
}
//// Used in ActivityResult to report cancellation
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Cancelation {
    #[prost(message, optional, tag = "1")]
    pub details: ::core::option::Option<super::common::Payload>,
}
//// Used in ActivityResult to report successful completion
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Success {
    #[prost(message, optional, tag = "1")]
    pub result: ::core::option::Option<super::common::Payload>,
}
//// Used in ActivityResult to report failure
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Failure {
    #[prost(message, optional, tag = "1")]
    pub failure: ::core::option::Option<super::common::UserCodeFailure>,
}