aws-db-esdk 1.2.4

aws-db-esdk is a library for implementing client side encryption with DynamoDB.
Documentation
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Do not modify this file. This file is machine generated, and any changes to it will be overwritten.
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// Do not modify this file. This file is machine generated, and any changes to it will be overwritten.
#[allow(dead_code)]
use std::any::Any;

pub fn to_dafny(
    value: &crate::deps::com_amazonaws_dynamodb::client::Client,
) ->
  ::dafny_runtime::Object<dyn crate::r#software::amazon::cryptography::services::dynamodb::internaldafny::types::IDynamoDBClient>
{
    let x: dafny_runtime::Rc<crate::deps::com_amazonaws_dynamodb::client::Client> =
        dafny_runtime::Rc::new(value.clone());
    let y = x as dafny_runtime::Rc<dyn crate::r#software::amazon::cryptography::services::dynamodb::internaldafny::types::IDynamoDBClient>;
    unsafe { ::dafny_runtime::dafny_runtime_conversions::object::rc_struct_to_dafny_class(y) }
}

#[allow(dead_code)]
pub fn from_dafny(
    dafny_value: ::dafny_runtime::Object<
      dyn crate::r#software::amazon::cryptography::services::dynamodb::internaldafny::types::IDynamoDBClient
    >,
) -> crate::deps::com_amazonaws_dynamodb::client::Client {
    let as_boxed_any = dafny_runtime::cast_any_object!(dafny_value);
    if (dafny_runtime::is_object!(
        as_boxed_any,
        crate::deps::com_amazonaws_dynamodb::client::Client
    )) {
        let as_boxed_client = ::dafny_runtime::object::downcast::<
            crate::deps::com_amazonaws_dynamodb::client::Client,
        >(as_boxed_any);
        unsafe {
            ::dafny_runtime::dafny_runtime_conversions::object::dafny_class_to_rc_struct(
                as_boxed_client,
            )
            .as_ref()
            .clone()
        }
    } else {
        panic!("Unexpected implementation of Dafny client interface");
    }
}