aws-sdk-endusermessaging 1.0.0

AWS SDK for AWS End User Messaging
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// Matcher union: {"output":{"path":"status","expected":"ACTIVE","comparator":"stringEquals"}}
pub(crate) fn match_get_brand_profile_a0b9c099115634691(
    _result: ::std::result::Result<
        &crate::operation::get_brand_profile::GetBrandProfileOutput,
        &crate::operation::get_brand_profile::GetBrandProfileError,
    >,
) -> bool {
    fn path_traversal<'a>(
        _output: &'a crate::operation::get_brand_profile::GetBrandProfileOutput,
    ) -> ::std::option::Option<&'a crate::types::Status> {
        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 = "ACTIVE";
            let _cmp_1 = _tmp_2 == right;
            _cmp_1
        })
        .unwrap_or_default()
}

/// Matcher union: {"output":{"path":"status","expected":"BLOCKED","comparator":"stringEquals"}}
pub(crate) fn match_get_brand_profile_39e555504615d3f54(
    _result: ::std::result::Result<
        &crate::operation::get_brand_profile::GetBrandProfileOutput,
        &crate::operation::get_brand_profile::GetBrandProfileError,
    >,
) -> bool {
    fn path_traversal<'a>(
        _output: &'a crate::operation::get_brand_profile::GetBrandProfileOutput,
    ) -> ::std::option::Option<&'a crate::types::Status> {
        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 = "BLOCKED";
            let _cmp_1 = _tmp_2 == right;
            _cmp_1
        })
        .unwrap_or_default()
}

/// Matcher union: {"output":{"path":"status","expected":"CANCELLED","comparator":"stringEquals"}}
pub(crate) fn match_get_brand_profile_4ddbeb25cc5547dc0(
    _result: ::std::result::Result<
        &crate::operation::get_brand_profile::GetBrandProfileOutput,
        &crate::operation::get_brand_profile::GetBrandProfileError,
    >,
) -> bool {
    fn path_traversal<'a>(
        _output: &'a crate::operation::get_brand_profile::GetBrandProfileOutput,
    ) -> ::std::option::Option<&'a crate::types::Status> {
        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 = "CANCELLED";
            let _cmp_1 = _tmp_2 == right;
            _cmp_1
        })
        .unwrap_or_default()
}

/// Matcher union: {"output":{"path":"status","expected":"FAILED","comparator":"stringEquals"}}
pub(crate) fn match_get_brand_profile_f9c483f08ce8cb218(
    _result: ::std::result::Result<
        &crate::operation::get_brand_profile::GetBrandProfileOutput,
        &crate::operation::get_brand_profile::GetBrandProfileError,
    >,
) -> bool {
    fn path_traversal<'a>(
        _output: &'a crate::operation::get_brand_profile::GetBrandProfileOutput,
    ) -> ::std::option::Option<&'a crate::types::Status> {
        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 = "FAILED";
            let _cmp_1 = _tmp_2 == right;
            _cmp_1
        })
        .unwrap_or_default()
}

/// Matcher union: {"output":{"path":"status","expected":"SUCCESS","comparator":"stringEquals"}}
pub(crate) fn match_get_job_d44680ecccf18716c(
    _result: ::std::result::Result<&crate::operation::get_job::GetJobOutput, &crate::operation::get_job::GetJobError>,
) -> bool {
    fn path_traversal<'a>(_output: &'a crate::operation::get_job::GetJobOutput) -> ::std::option::Option<&'a crate::types::JobStatus> {
        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 = "SUCCESS";
            let _cmp_1 = _tmp_2 == right;
            _cmp_1
        })
        .unwrap_or_default()
}

/// Matcher union: {"output":{"path":"status","expected":"FAILED","comparator":"stringEquals"}}
pub(crate) fn match_get_job_f9c483f08ce8cb218(
    _result: ::std::result::Result<&crate::operation::get_job::GetJobOutput, &crate::operation::get_job::GetJobError>,
) -> bool {
    fn path_traversal<'a>(_output: &'a crate::operation::get_job::GetJobOutput) -> ::std::option::Option<&'a crate::types::JobStatus> {
        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 = "FAILED";
            let _cmp_1 = _tmp_2 == right;
            _cmp_1
        })
        .unwrap_or_default()
}