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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub(crate) fn reflens_get_workflow_execution_history_output_output_next_page_token(
    input: &crate::operation::get_workflow_execution_history::GetWorkflowExecutionHistoryOutput,
) -> ::std::option::Option<&::std::string::String> {
    let input = match &input.next_page_token {
        ::std::option::Option::None => return ::std::option::Option::None,
        ::std::option::Option::Some(t) => t,
    };
    ::std::option::Option::Some(input)
}

pub(crate) fn reflens_list_activity_types_output_output_next_page_token(
    input: &crate::operation::list_activity_types::ListActivityTypesOutput,
) -> ::std::option::Option<&::std::string::String> {
    let input = match &input.next_page_token {
        ::std::option::Option::None => return ::std::option::Option::None,
        ::std::option::Option::Some(t) => t,
    };
    ::std::option::Option::Some(input)
}

pub(crate) fn reflens_list_closed_workflow_executions_output_output_next_page_token(
    input: &crate::operation::list_closed_workflow_executions::ListClosedWorkflowExecutionsOutput,
) -> ::std::option::Option<&::std::string::String> {
    let input = match &input.next_page_token {
        ::std::option::Option::None => return ::std::option::Option::None,
        ::std::option::Option::Some(t) => t,
    };
    ::std::option::Option::Some(input)
}

pub(crate) fn reflens_list_domains_output_output_next_page_token(
    input: &crate::operation::list_domains::ListDomainsOutput,
) -> ::std::option::Option<&::std::string::String> {
    let input = match &input.next_page_token {
        ::std::option::Option::None => return ::std::option::Option::None,
        ::std::option::Option::Some(t) => t,
    };
    ::std::option::Option::Some(input)
}

pub(crate) fn reflens_list_open_workflow_executions_output_output_next_page_token(
    input: &crate::operation::list_open_workflow_executions::ListOpenWorkflowExecutionsOutput,
) -> ::std::option::Option<&::std::string::String> {
    let input = match &input.next_page_token {
        ::std::option::Option::None => return ::std::option::Option::None,
        ::std::option::Option::Some(t) => t,
    };
    ::std::option::Option::Some(input)
}

pub(crate) fn reflens_list_workflow_types_output_output_next_page_token(
    input: &crate::operation::list_workflow_types::ListWorkflowTypesOutput,
) -> ::std::option::Option<&::std::string::String> {
    let input = match &input.next_page_token {
        ::std::option::Option::None => return ::std::option::Option::None,
        ::std::option::Option::Some(t) => t,
    };
    ::std::option::Option::Some(input)
}

pub(crate) fn reflens_poll_for_decision_task_output_output_next_page_token(
    input: &crate::operation::poll_for_decision_task::PollForDecisionTaskOutput,
) -> ::std::option::Option<&::std::string::String> {
    let input = match &input.next_page_token {
        ::std::option::Option::None => return ::std::option::Option::None,
        ::std::option::Option::Some(t) => t,
    };
    ::std::option::Option::Some(input)
}

pub(crate) fn lens_get_workflow_execution_history_output_output_events(
    input: crate::operation::get_workflow_execution_history::GetWorkflowExecutionHistoryOutput,
) -> ::std::option::Option<::std::vec::Vec<crate::types::HistoryEvent>> {
    let input = input.events;
    ::std::option::Option::Some(input)
}

pub(crate) fn lens_list_activity_types_output_output_type_infos(
    input: crate::operation::list_activity_types::ListActivityTypesOutput,
) -> ::std::option::Option<::std::vec::Vec<crate::types::ActivityTypeInfo>> {
    let input = input.type_infos;
    ::std::option::Option::Some(input)
}

pub(crate) fn lens_list_closed_workflow_executions_output_output_execution_infos(
    input: crate::operation::list_closed_workflow_executions::ListClosedWorkflowExecutionsOutput,
) -> ::std::option::Option<::std::vec::Vec<crate::types::WorkflowExecutionInfo>> {
    let input = input.execution_infos;
    ::std::option::Option::Some(input)
}

pub(crate) fn lens_list_domains_output_output_domain_infos(
    input: crate::operation::list_domains::ListDomainsOutput,
) -> ::std::option::Option<::std::vec::Vec<crate::types::DomainInfo>> {
    let input = input.domain_infos;
    ::std::option::Option::Some(input)
}

pub(crate) fn lens_list_open_workflow_executions_output_output_execution_infos(
    input: crate::operation::list_open_workflow_executions::ListOpenWorkflowExecutionsOutput,
) -> ::std::option::Option<::std::vec::Vec<crate::types::WorkflowExecutionInfo>> {
    let input = input.execution_infos;
    ::std::option::Option::Some(input)
}

pub(crate) fn lens_list_workflow_types_output_output_type_infos(
    input: crate::operation::list_workflow_types::ListWorkflowTypesOutput,
) -> ::std::option::Option<::std::vec::Vec<crate::types::WorkflowTypeInfo>> {
    let input = input.type_infos;
    ::std::option::Option::Some(input)
}

pub(crate) fn lens_poll_for_decision_task_output_output_events(
    input: crate::operation::poll_for_decision_task::PollForDecisionTaskOutput,
) -> ::std::option::Option<::std::vec::Vec<crate::types::HistoryEvent>> {
    let input = input.events;
    ::std::option::Option::Some(input)
}