#[non_exhaustive]pub struct ContentTypeProfileConfig { /* private fields */ }
Expand description
The configuration for a field-level encryption content type-profile mapping.
Implementations§
source§impl ContentTypeProfileConfig
impl ContentTypeProfileConfig
sourcepub fn forward_when_content_type_is_unknown(&self) -> Option<bool>
pub fn forward_when_content_type_is_unknown(&self) -> Option<bool>
The setting in a field-level encryption content type-profile mapping that specifies what to do when an unknown content type is provided for the profile. If true, content is forwarded without being encrypted when the content type is unknown. If false (the default), an error is returned when the content type is unknown.
sourcepub fn content_type_profiles(&self) -> Option<&ContentTypeProfiles>
pub fn content_type_profiles(&self) -> Option<&ContentTypeProfiles>
The configuration for a field-level encryption content type-profile.
source§impl ContentTypeProfileConfig
impl ContentTypeProfileConfig
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ContentTypeProfileConfig
.
Examples found in repository?
src/xml_deser.rs (line 10293)
10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325
pub fn deser_structure_crate_model_content_type_profile_config(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ContentTypeProfileConfig, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ContentTypeProfileConfig::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ForwardWhenContentTypeIsUnknown") /* ForwardWhenContentTypeIsUnknown com.amazonaws.cloudfront#ContentTypeProfileConfig$ForwardWhenContentTypeIsUnknown */ => {
let var_408 =
Some(
{
<bool 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 (boolean: `com.amazonaws.cloudfront#boolean`)"))
}
?
)
;
builder = builder.set_forward_when_content_type_is_unknown(var_408);
}
,
s if s.matches("ContentTypeProfiles") /* ContentTypeProfiles com.amazonaws.cloudfront#ContentTypeProfileConfig$ContentTypeProfiles */ => {
let var_409 =
Some(
crate::xml_deser::deser_structure_crate_model_content_type_profiles(&mut tag)
?
)
;
builder = builder.set_content_type_profiles(var_409);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ContentTypeProfileConfig
impl Clone for ContentTypeProfileConfig
source§fn clone(&self) -> ContentTypeProfileConfig
fn clone(&self) -> ContentTypeProfileConfig
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