#[non_exhaustive]pub struct ContentTypeProfileConfig {
pub forward_when_content_type_is_unknown: bool,
pub content_type_profiles: Option<ContentTypeProfiles>,
}
Expand description
The configuration for a field-level encryption content type-profile mapping.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.forward_when_content_type_is_unknown: 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.
content_type_profiles: Option<ContentTypeProfiles>
The configuration for a field-level encryption content type-profile.
Implementations§
source§impl ContentTypeProfileConfig
impl ContentTypeProfileConfig
sourcepub fn forward_when_content_type_is_unknown(&self) -> bool
pub fn forward_when_content_type_is_unknown(&self) -> 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() -> ContentTypeProfileConfigBuilder
pub fn builder() -> ContentTypeProfileConfigBuilder
Creates a new builder-style object to manufacture ContentTypeProfileConfig
.
Trait Implementations§
source§impl Clone for ContentTypeProfileConfig
impl Clone for ContentTypeProfileConfig
source§fn clone(&self) -> ContentTypeProfileConfig
fn clone(&self) -> ContentTypeProfileConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ContentTypeProfileConfig
impl Debug for ContentTypeProfileConfig
source§impl PartialEq for ContentTypeProfileConfig
impl PartialEq for ContentTypeProfileConfig
source§fn eq(&self, other: &ContentTypeProfileConfig) -> bool
fn eq(&self, other: &ContentTypeProfileConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ContentTypeProfileConfig
Auto Trait Implementations§
impl Freeze for ContentTypeProfileConfig
impl RefUnwindSafe for ContentTypeProfileConfig
impl Send for ContentTypeProfileConfig
impl Sync for ContentTypeProfileConfig
impl Unpin for ContentTypeProfileConfig
impl UnwindSafe for ContentTypeProfileConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more