Struct aws_sdk_iotanalytics::model::json_configuration::Builder
source · pub struct Builder {}Expand description
A builder for JsonConfiguration.
Implementations§
source§impl Builder
impl Builder
sourcepub fn build(self) -> JsonConfiguration
pub fn build(self) -> JsonConfiguration
Consumes the builder and constructs a JsonConfiguration.
Examples found in repository?
src/json_deser.rs (line 4469)
4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477
pub(crate) fn deser_structure_crate_model_json_configuration<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::JsonConfiguration>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::json_configuration::Builder::default();
aws_smithy_json::deserialize::token::skip_to_end(tokens)?;
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}