Struct aws_sdk_securityhub::model::classification_result::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ClassificationResult
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn mime_type(self, input: impl Into<String>) -> Self
pub fn mime_type(self, input: impl Into<String>) -> Self
The type of content that the finding applies to.
sourcepub fn set_mime_type(self, input: Option<String>) -> Self
pub fn set_mime_type(self, input: Option<String>) -> Self
The type of content that the finding applies to.
Examples found in repository?
10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287
pub(crate) fn deser_structure_crate_model_classification_result<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ClassificationResult>,
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::classification_result::Builder::default();
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() {
"MimeType" => {
builder = builder.set_mime_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SizeClassified" => {
builder = builder.set_size_classified(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"AdditionalOccurrences" => {
builder = builder.set_additional_occurrences(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"Status" => {
builder = builder.set_status(
crate::json_deser::deser_structure_crate_model_classification_status(tokens)?
);
}
"SensitiveData" => {
builder = builder.set_sensitive_data(
crate::json_deser::deser_list_com_amazonaws_securityhub_sensitive_data_result_list(tokens)?
);
}
"CustomDataIdentifiers" => {
builder = builder.set_custom_data_identifiers(
crate::json_deser::deser_structure_crate_model_custom_data_identifiers_result(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
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn size_classified(self, input: i64) -> Self
pub fn size_classified(self, input: i64) -> Self
The total size in bytes of the affected data.
sourcepub fn set_size_classified(self, input: Option<i64>) -> Self
pub fn set_size_classified(self, input: Option<i64>) -> Self
The total size in bytes of the affected data.
Examples found in repository?
10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287
pub(crate) fn deser_structure_crate_model_classification_result<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ClassificationResult>,
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::classification_result::Builder::default();
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() {
"MimeType" => {
builder = builder.set_mime_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SizeClassified" => {
builder = builder.set_size_classified(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"AdditionalOccurrences" => {
builder = builder.set_additional_occurrences(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"Status" => {
builder = builder.set_status(
crate::json_deser::deser_structure_crate_model_classification_status(tokens)?
);
}
"SensitiveData" => {
builder = builder.set_sensitive_data(
crate::json_deser::deser_list_com_amazonaws_securityhub_sensitive_data_result_list(tokens)?
);
}
"CustomDataIdentifiers" => {
builder = builder.set_custom_data_identifiers(
crate::json_deser::deser_structure_crate_model_custom_data_identifiers_result(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
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn additional_occurrences(self, input: bool) -> Self
pub fn additional_occurrences(self, input: bool) -> Self
Indicates whether there are additional occurrences of sensitive data that are not included in the finding. This occurs when the number of occurrences exceeds the maximum that can be included.
sourcepub fn set_additional_occurrences(self, input: Option<bool>) -> Self
pub fn set_additional_occurrences(self, input: Option<bool>) -> Self
Indicates whether there are additional occurrences of sensitive data that are not included in the finding. This occurs when the number of occurrences exceeds the maximum that can be included.
Examples found in repository?
10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287
pub(crate) fn deser_structure_crate_model_classification_result<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ClassificationResult>,
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::classification_result::Builder::default();
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() {
"MimeType" => {
builder = builder.set_mime_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SizeClassified" => {
builder = builder.set_size_classified(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"AdditionalOccurrences" => {
builder = builder.set_additional_occurrences(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"Status" => {
builder = builder.set_status(
crate::json_deser::deser_structure_crate_model_classification_status(tokens)?
);
}
"SensitiveData" => {
builder = builder.set_sensitive_data(
crate::json_deser::deser_list_com_amazonaws_securityhub_sensitive_data_result_list(tokens)?
);
}
"CustomDataIdentifiers" => {
builder = builder.set_custom_data_identifiers(
crate::json_deser::deser_structure_crate_model_custom_data_identifiers_result(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
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn status(self, input: ClassificationStatus) -> Self
pub fn status(self, input: ClassificationStatus) -> Self
The current status of the sensitive data detection.
sourcepub fn set_status(self, input: Option<ClassificationStatus>) -> Self
pub fn set_status(self, input: Option<ClassificationStatus>) -> Self
The current status of the sensitive data detection.
Examples found in repository?
10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287
pub(crate) fn deser_structure_crate_model_classification_result<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ClassificationResult>,
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::classification_result::Builder::default();
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() {
"MimeType" => {
builder = builder.set_mime_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SizeClassified" => {
builder = builder.set_size_classified(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"AdditionalOccurrences" => {
builder = builder.set_additional_occurrences(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"Status" => {
builder = builder.set_status(
crate::json_deser::deser_structure_crate_model_classification_status(tokens)?
);
}
"SensitiveData" => {
builder = builder.set_sensitive_data(
crate::json_deser::deser_list_com_amazonaws_securityhub_sensitive_data_result_list(tokens)?
);
}
"CustomDataIdentifiers" => {
builder = builder.set_custom_data_identifiers(
crate::json_deser::deser_structure_crate_model_custom_data_identifiers_result(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
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn sensitive_data(self, input: SensitiveDataResult) -> Self
pub fn sensitive_data(self, input: SensitiveDataResult) -> Self
Appends an item to sensitive_data
.
To override the contents of this collection use set_sensitive_data
.
Provides details about sensitive data that was identified based on built-in configuration.
sourcepub fn set_sensitive_data(self, input: Option<Vec<SensitiveDataResult>>) -> Self
pub fn set_sensitive_data(self, input: Option<Vec<SensitiveDataResult>>) -> Self
Provides details about sensitive data that was identified based on built-in configuration.
Examples found in repository?
10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287
pub(crate) fn deser_structure_crate_model_classification_result<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ClassificationResult>,
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::classification_result::Builder::default();
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() {
"MimeType" => {
builder = builder.set_mime_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SizeClassified" => {
builder = builder.set_size_classified(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"AdditionalOccurrences" => {
builder = builder.set_additional_occurrences(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"Status" => {
builder = builder.set_status(
crate::json_deser::deser_structure_crate_model_classification_status(tokens)?
);
}
"SensitiveData" => {
builder = builder.set_sensitive_data(
crate::json_deser::deser_list_com_amazonaws_securityhub_sensitive_data_result_list(tokens)?
);
}
"CustomDataIdentifiers" => {
builder = builder.set_custom_data_identifiers(
crate::json_deser::deser_structure_crate_model_custom_data_identifiers_result(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
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn custom_data_identifiers(self, input: CustomDataIdentifiersResult) -> Self
pub fn custom_data_identifiers(self, input: CustomDataIdentifiersResult) -> Self
Provides details about sensitive data that was identified based on customer-defined configuration.
sourcepub fn set_custom_data_identifiers(
self,
input: Option<CustomDataIdentifiersResult>
) -> Self
pub fn set_custom_data_identifiers(
self,
input: Option<CustomDataIdentifiersResult>
) -> Self
Provides details about sensitive data that was identified based on customer-defined configuration.
Examples found in repository?
10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287
pub(crate) fn deser_structure_crate_model_classification_result<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ClassificationResult>,
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::classification_result::Builder::default();
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() {
"MimeType" => {
builder = builder.set_mime_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SizeClassified" => {
builder = builder.set_size_classified(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"AdditionalOccurrences" => {
builder = builder.set_additional_occurrences(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"Status" => {
builder = builder.set_status(
crate::json_deser::deser_structure_crate_model_classification_status(tokens)?
);
}
"SensitiveData" => {
builder = builder.set_sensitive_data(
crate::json_deser::deser_list_com_amazonaws_securityhub_sensitive_data_result_list(tokens)?
);
}
"CustomDataIdentifiers" => {
builder = builder.set_custom_data_identifiers(
crate::json_deser::deser_structure_crate_model_custom_data_identifiers_result(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
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn build(self) -> ClassificationResult
pub fn build(self) -> ClassificationResult
Consumes the builder and constructs a ClassificationResult
.
Examples found in repository?
10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287
pub(crate) fn deser_structure_crate_model_classification_result<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ClassificationResult>,
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::classification_result::Builder::default();
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() {
"MimeType" => {
builder = builder.set_mime_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"SizeClassified" => {
builder = builder.set_size_classified(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"AdditionalOccurrences" => {
builder = builder.set_additional_occurrences(
aws_smithy_json::deserialize::token::expect_bool_or_null(
tokens.next(),
)?,
);
}
"Status" => {
builder = builder.set_status(
crate::json_deser::deser_structure_crate_model_classification_status(tokens)?
);
}
"SensitiveData" => {
builder = builder.set_sensitive_data(
crate::json_deser::deser_list_com_amazonaws_securityhub_sensitive_data_result_list(tokens)?
);
}
"CustomDataIdentifiers" => {
builder = builder.set_custom_data_identifiers(
crate::json_deser::deser_structure_crate_model_custom_data_identifiers_result(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
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}