Struct aws_sdk_cloudfront::model::ContentTypeProfile
source · #[non_exhaustive]pub struct ContentTypeProfile { /* private fields */ }
Expand description
A field-level encryption content type profile.
Implementations§
source§impl ContentTypeProfile
impl ContentTypeProfile
sourcepub fn format(&self) -> Option<&Format>
pub fn format(&self) -> Option<&Format>
The format for a field-level encryption content type-profile mapping.
sourcepub fn profile_id(&self) -> Option<&str>
pub fn profile_id(&self) -> Option<&str>
The profile ID for a field-level encryption content type-profile mapping.
sourcepub fn content_type(&self) -> Option<&str>
pub fn content_type(&self) -> Option<&str>
The content type for a field-level encryption content type-profile mapping.
source§impl ContentTypeProfile
impl ContentTypeProfile
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ContentTypeProfile
.
Examples found in repository?
src/xml_deser.rs (line 15338)
15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385
pub fn deser_structure_crate_model_content_type_profile(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ContentTypeProfile, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ContentTypeProfile::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Format") /* Format com.amazonaws.cloudfront#ContentTypeProfile$Format */ => {
let var_652 =
Some(
Result::<crate::model::Format, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::Format::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_format(var_652);
}
,
s if s.matches("ProfileId") /* ProfileId com.amazonaws.cloudfront#ContentTypeProfile$ProfileId */ => {
let var_653 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_profile_id(var_653);
}
,
s if s.matches("ContentType") /* ContentType com.amazonaws.cloudfront#ContentTypeProfile$ContentType */ => {
let var_654 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_content_type(var_654);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ContentTypeProfile
impl Clone for ContentTypeProfile
source§fn clone(&self) -> ContentTypeProfile
fn clone(&self) -> ContentTypeProfile
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