pub(crate) fn match_get_feed_1cce2c05524fb92d4(
_result: ::std::result::Result<&crate::operation::get_feed::GetFeedOutput, &crate::operation::get_feed::GetFeedError>,
) -> bool {
if let ::std::result::Result::Err(err) = _result {
if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(err) {
return code == "ResourceNotFoundException";
}
}
false
}
pub(crate) fn match_get_feed_8edac4c36e2a37f69(
_result: ::std::result::Result<&crate::operation::get_feed::GetFeedOutput, &crate::operation::get_feed::GetFeedError>,
) -> bool {
fn path_traversal<'a>(_output: &'a crate::operation::get_feed::GetFeedOutput) -> ::std::option::Option<&'a crate::types::FeedStatus> {
let _fld_1 = &_output.status;
::std::option::Option::Some(_fld_1)
}
_result
.as_ref()
.ok()
.and_then(|output| path_traversal(output))
.map(|value| {
let _tmp_2 = value.as_str();
let right = "DELETED";
let _cmp_1 = _tmp_2 == right;
_cmp_1
})
.unwrap_or_default()
}
pub(crate) fn match_get_feed_ac9cf40eec4f10ab5(
_result: ::std::result::Result<&crate::operation::get_feed::GetFeedOutput, &crate::operation::get_feed::GetFeedError>,
) -> bool {
fn path_traversal<'a>(_output: &'a crate::operation::get_feed::GetFeedOutput) -> ::std::option::Option<&'a crate::types::FeedStatus> {
let _fld_1 = &_output.status;
::std::option::Option::Some(_fld_1)
}
_result
.as_ref()
.ok()
.and_then(|output| path_traversal(output))
.map(|value| {
let _tmp_2 = value.as_str();
let right = "DELETING";
let _cmp_1 = _tmp_2 == right;
_cmp_1
})
.unwrap_or_default()
}
pub(crate) fn match_get_feed_23a4ee68df28eed70(
_result: ::std::result::Result<&crate::operation::get_feed::GetFeedOutput, &crate::operation::get_feed::GetFeedError>,
) -> bool {
if let ::std::result::Result::Err(err) = _result {
if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(err) {
return code == "InternalServerErrorException";
}
}
false
}
pub(crate) fn match_get_feed_9e27ec506faa3605f(
_result: ::std::result::Result<&crate::operation::get_feed::GetFeedOutput, &crate::operation::get_feed::GetFeedError>,
) -> bool {
if let ::std::result::Result::Err(err) = _result {
if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(err) {
return code == "TooManyRequestException";
}
}
false
}