Struct aws_sdk_cloudfront::model::EncryptionEntities
source · #[non_exhaustive]pub struct EncryptionEntities { /* private fields */ }
Expand description
Complex data type for field-level encryption profiles that includes all of the encryption entities.
Implementations§
source§impl EncryptionEntities
impl EncryptionEntities
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture EncryptionEntities
.
Examples found in repository?
src/xml_deser.rs (line 10331)
10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363
pub fn deser_structure_crate_model_encryption_entities(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::EncryptionEntities, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::EncryptionEntities::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Quantity") /* Quantity com.amazonaws.cloudfront#EncryptionEntities$Quantity */ => {
let var_410 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudfront#integer`)"))
}
?
)
;
builder = builder.set_quantity(var_410);
}
,
s if s.matches("Items") /* Items com.amazonaws.cloudfront#EncryptionEntities$Items */ => {
let var_411 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_encryption_entity_list(&mut tag)
?
)
;
builder = builder.set_items(var_411);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for EncryptionEntities
impl Clone for EncryptionEntities
source§fn clone(&self) -> EncryptionEntities
fn clone(&self) -> EncryptionEntities
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more