pub struct Builder {}Expand description
A builder for ServiceManagedDatastoreS3Storage.
Implementations§
source§impl Builder
impl Builder
sourcepub fn build(self) -> ServiceManagedDatastoreS3Storage
pub fn build(self) -> ServiceManagedDatastoreS3Storage
Consumes the builder and constructs a ServiceManagedDatastoreS3Storage.
Examples found in repository?
src/json_deser.rs (line 4311)
4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319
pub(crate) fn deser_structure_crate_model_service_managed_datastore_s3_storage<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ServiceManagedDatastoreS3Storage>,
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::service_managed_datastore_s3_storage::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",
),
),
}
}