Struct aws_sdk_memorydb::output::update_user_output::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for UpdateUserOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_user(self, input: Option<User>) -> Self
pub fn set_user(self, input: Option<User>) -> Self
The updated user
Examples found in repository?
src/json_deser.rs (line 4069)
4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092
pub(crate) fn deser_operation_crate_operation_update_user(
value: &[u8],
mut builder: crate::output::update_user_output::Builder,
) -> Result<
crate::output::update_user_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() {
"User" => {
builder = builder
.set_user(crate::json_deser::deser_structure_crate_model_user(tokens)?);
}
_ => 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) -> UpdateUserOutput
pub fn build(self) -> UpdateUserOutput
Consumes the builder and constructs a UpdateUserOutput
.
Examples found in repository?
src/operation_deser.rs (line 4825)
4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827
pub fn parse_update_user_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<crate::output::UpdateUserOutput, crate::error::UpdateUserError> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::update_user_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_update_user(
response.body().as_ref(),
output,
)
.map_err(crate::error::UpdateUserError::unhandled)?;
output.build()
})
}