pub struct Builder { /* private fields */ }Expand description
A builder for InvokeScreenAutomationOutput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn workbook_cursor(self, input: i64) -> Self
pub fn workbook_cursor(self, input: i64) -> Self
The updated workbook cursor after performing the automation action.
sourcepub fn set_workbook_cursor(self, input: Option<i64>) -> Self
pub fn set_workbook_cursor(self, input: Option<i64>) -> Self
The updated workbook cursor after performing the automation action.
Examples found in repository?
src/json_deser.rs (lines 888-894)
870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917
pub(crate) fn deser_operation_crate_operation_invoke_screen_automation(
value: &[u8],
mut builder: crate::output::invoke_screen_automation_output::Builder,
) -> Result<
crate::output::invoke_screen_automation_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"workbookCursor" => {
builder = builder.set_workbook_cursor(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}sourcepub fn build(self) -> InvokeScreenAutomationOutput
pub fn build(self) -> InvokeScreenAutomationOutput
Consumes the builder and constructs a InvokeScreenAutomationOutput.
Examples found in repository?
src/operation_deser.rs (line 1211)
1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213
pub fn parse_invoke_screen_automation_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::InvokeScreenAutomationOutput,
crate::error::InvokeScreenAutomationError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::invoke_screen_automation_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_invoke_screen_automation(
response.body().as_ref(),
output,
)
.map_err(crate::error::InvokeScreenAutomationError::unhandled)?;
output.build()
})
}