aws_sdk_s3/waiters/
matchers.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// Matcher union: {"success":true}
pub(crate) fn match_head_bucket_c955e57777ec0d736(
    _result: ::std::result::Result<&crate::operation::head_bucket::HeadBucketOutput, &crate::operation::head_bucket::HeadBucketError>,
) -> bool {
    _result.is_ok()
}

/// Matcher union: {"errorType":"NotFound"}
pub(crate) fn match_head_bucket_01223db2f9ae15f05(
    _result: ::std::result::Result<&crate::operation::head_bucket::HeadBucketOutput, &crate::operation::head_bucket::HeadBucketError>,
) -> 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 == "NotFound";
        }
    }
    false
}

/// Matcher union: {"success":true}
pub(crate) fn match_head_object_c955e57777ec0d736(
    _result: ::std::result::Result<&crate::operation::head_object::HeadObjectOutput, &crate::operation::head_object::HeadObjectError>,
) -> bool {
    _result.is_ok()
}

/// Matcher union: {"errorType":"NotFound"}
pub(crate) fn match_head_object_01223db2f9ae15f05(
    _result: ::std::result::Result<&crate::operation::head_object::HeadObjectOutput, &crate::operation::head_object::HeadObjectError>,
) -> 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 == "NotFound";
        }
    }
    false
}