#[allow(dead_code)]
pub fn to_dafny(
value: &aws_sdk_dynamodb::types::KeysAndAttributes,
) -> ::dafny_runtime::Rc<crate::r#software::amazon::cryptography::services::dynamodb::internaldafny::types::KeysAndAttributes>{
::dafny_runtime::Rc::new(
crate::r#software::amazon::cryptography::services::dynamodb::internaldafny::types::KeysAndAttributes::KeysAndAttributes {
Keys: ::dafny_runtime::dafny_runtime_conversions::vec_to_dafny_sequence(&value.keys,
|e| ::dafny_runtime::dafny_runtime_conversions::hashmap_to_dafny_map(&e.clone(),
|k| dafny_runtime::dafny_runtime_conversions::unicode_chars_false::string_to_dafny_string(&k),
|v| crate::deps::com_amazonaws_dynamodb::conversions::attribute_value::to_dafny(v)
,
)
,
)
,
AttributesToGet: ::dafny_runtime::Rc::new(match &value.attributes_to_get {
Some(x) => crate::r#_Wrappers_Compile::Option::Some { value :
::dafny_runtime::dafny_runtime_conversions::vec_to_dafny_sequence(x,
|e| dafny_runtime::dafny_runtime_conversions::unicode_chars_false::string_to_dafny_string(&e),
)
},
None => crate::r#_Wrappers_Compile::Option::None {}
})
,
ConsistentRead: crate::standard_library_conversions::obool_to_dafny(&value.consistent_read),
ProjectionExpression: crate::standard_library_conversions::ostring_to_dafny(&value.projection_expression),
ExpressionAttributeNames:
::dafny_runtime::Rc::new(match &value.expression_attribute_names {
Some(x) => crate::r#_Wrappers_Compile::Option::Some { value :
::dafny_runtime::dafny_runtime_conversions::hashmap_to_dafny_map(x,
|k| dafny_runtime::dafny_runtime_conversions::unicode_chars_false::string_to_dafny_string(&k),
|v| dafny_runtime::dafny_runtime_conversions::unicode_chars_false::string_to_dafny_string(&v),
)
},
None => crate::r#_Wrappers_Compile::Option::None {}
})
,
}
)
}
#[allow(dead_code)]
pub fn from_dafny(
dafny_value: ::dafny_runtime::Rc<
crate::r#software::amazon::cryptography::services::dynamodb::internaldafny::types::KeysAndAttributes,
>,
) -> aws_sdk_dynamodb::types::KeysAndAttributes {
aws_sdk_dynamodb::types::KeysAndAttributes::builder()
.set_keys(Some( ::dafny_runtime::dafny_runtime_conversions::dafny_sequence_to_vec(dafny_value.Keys(),
|e: &::dafny_runtime::dafny_runtime_conversions::DafnyMap<::dafny_runtime::dafny_runtime_conversions::DafnySequence<::dafny_runtime::dafny_runtime_conversions::DafnyCharUTF16>, ::dafny_runtime::Rc<crate::r#software::amazon::cryptography::services::dynamodb::internaldafny::types::AttributeValue>>| ::dafny_runtime::dafny_runtime_conversions::dafny_map_to_hashmap(&e,
|k: &::dafny_runtime::dafny_runtime_conversions::DafnySequence<::dafny_runtime::dafny_runtime_conversions::DafnyCharUTF16>| dafny_runtime::dafny_runtime_conversions::unicode_chars_false::dafny_string_to_string(k),
|v: &::dafny_runtime::Rc<crate::r#software::amazon::cryptography::services::dynamodb::internaldafny::types::AttributeValue>| crate::deps::com_amazonaws_dynamodb::conversions::attribute_value::from_dafny(v.clone())
,
)
,
)
))
.set_attributes_to_get(match (*dafny_value.AttributesToGet()).as_ref() {
crate::r#_Wrappers_Compile::Option::Some { value } =>
Some(
::dafny_runtime::dafny_runtime_conversions::dafny_sequence_to_vec(value,
|e: &::dafny_runtime::dafny_runtime_conversions::DafnySequence<::dafny_runtime::dafny_runtime_conversions::DafnyCharUTF16>| dafny_runtime::dafny_runtime_conversions::unicode_chars_false::dafny_string_to_string(e),
)
),
_ => None
}
)
.set_consistent_read(crate::standard_library_conversions::obool_from_dafny(dafny_value.ConsistentRead().clone()))
.set_projection_expression(crate::standard_library_conversions::ostring_from_dafny(dafny_value.ProjectionExpression().clone()))
.set_expression_attribute_names(match (*dafny_value.ExpressionAttributeNames()).as_ref() {
crate::r#_Wrappers_Compile::Option::Some { value } =>
Some(
::dafny_runtime::dafny_runtime_conversions::dafny_map_to_hashmap(value,
|k: &::dafny_runtime::dafny_runtime_conversions::DafnySequence<::dafny_runtime::dafny_runtime_conversions::DafnyCharUTF16>| dafny_runtime::dafny_runtime_conversions::unicode_chars_false::dafny_string_to_string(k),
|v: &::dafny_runtime::dafny_runtime_conversions::DafnySequence<::dafny_runtime::dafny_runtime_conversions::DafnyCharUTF16>| dafny_runtime::dafny_runtime_conversions::unicode_chars_false::dafny_string_to_string(v),
)
),
_ => None
}
)
.build()
.unwrap()
}