Struct aws_sdk_lambda::output::list_functions_output::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ListFunctionsOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn next_marker(self, input: impl Into<String>) -> Self
pub fn next_marker(self, input: impl Into<String>) -> Self
The pagination token that's included if more results are available.
sourcepub fn set_next_marker(self, input: Option<String>) -> Self
pub fn set_next_marker(self, input: Option<String>) -> Self
The pagination token that's included if more results are available.
Examples found in repository?
src/json_deser.rs (lines 4904-4910)
4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933
pub(crate) fn deser_operation_crate_operation_list_functions(
value: &[u8],
mut builder: crate::output::list_functions_output::Builder,
) -> Result<
crate::output::list_functions_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() {
"Functions" => {
builder = builder.set_functions(
crate::json_deser::deser_list_com_amazonaws_lambda_function_list(
tokens,
)?,
);
}
"NextMarker" => {
builder = builder.set_next_marker(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.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 functions(self, input: FunctionConfiguration) -> Self
pub fn functions(self, input: FunctionConfiguration) -> Self
Appends an item to functions
.
To override the contents of this collection use set_functions
.
A list of Lambda functions.
sourcepub fn set_functions(self, input: Option<Vec<FunctionConfiguration>>) -> Self
pub fn set_functions(self, input: Option<Vec<FunctionConfiguration>>) -> Self
A list of Lambda functions.
Examples found in repository?
src/json_deser.rs (lines 4897-4901)
4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933
pub(crate) fn deser_operation_crate_operation_list_functions(
value: &[u8],
mut builder: crate::output::list_functions_output::Builder,
) -> Result<
crate::output::list_functions_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() {
"Functions" => {
builder = builder.set_functions(
crate::json_deser::deser_list_com_amazonaws_lambda_function_list(
tokens,
)?,
);
}
"NextMarker" => {
builder = builder.set_next_marker(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.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) -> ListFunctionsOutput
pub fn build(self) -> ListFunctionsOutput
Consumes the builder and constructs a ListFunctionsOutput
.
Examples found in repository?
src/operation_deser.rs (line 4965)
4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967
pub fn parse_list_functions_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<crate::output::ListFunctionsOutput, crate::error::ListFunctionsError> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::list_functions_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_list_functions(
response.body().as_ref(),
output,
)
.map_err(crate::error::ListFunctionsError::unhandled)?;
output.build()
})
}