#[non_exhaustive]pub struct ContentTypeProfileBuilder { /* private fields */ }
Expand description
A builder for ContentTypeProfile
.
Implementations§
source§impl ContentTypeProfileBuilder
impl ContentTypeProfileBuilder
sourcepub fn format(self, input: Format) -> Self
pub fn format(self, input: Format) -> Self
The format for a field-level encryption content type-profile mapping.
This field is required.sourcepub fn set_format(self, input: Option<Format>) -> Self
pub fn set_format(self, input: Option<Format>) -> Self
The format for a field-level encryption content type-profile mapping.
sourcepub fn get_format(&self) -> &Option<Format>
pub fn get_format(&self) -> &Option<Format>
The format for a field-level encryption content type-profile mapping.
sourcepub fn profile_id(self, input: impl Into<String>) -> Self
pub fn profile_id(self, input: impl Into<String>) -> Self
The profile ID for a field-level encryption content type-profile mapping.
sourcepub fn set_profile_id(self, input: Option<String>) -> Self
pub fn set_profile_id(self, input: Option<String>) -> Self
The profile ID for a field-level encryption content type-profile mapping.
sourcepub fn get_profile_id(&self) -> &Option<String>
pub fn get_profile_id(&self) -> &Option<String>
The profile ID for a field-level encryption content type-profile mapping.
sourcepub fn content_type(self, input: impl Into<String>) -> Self
pub fn content_type(self, input: impl Into<String>) -> Self
The content type for a field-level encryption content type-profile mapping.
This field is required.sourcepub fn set_content_type(self, input: Option<String>) -> Self
pub fn set_content_type(self, input: Option<String>) -> Self
The content type for a field-level encryption content type-profile mapping.
sourcepub fn get_content_type(&self) -> &Option<String>
pub fn get_content_type(&self) -> &Option<String>
The content type for a field-level encryption content type-profile mapping.
sourcepub fn build(self) -> Result<ContentTypeProfile, BuildError>
pub fn build(self) -> Result<ContentTypeProfile, BuildError>
Consumes the builder and constructs a ContentTypeProfile
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ContentTypeProfileBuilder
impl Clone for ContentTypeProfileBuilder
source§fn clone(&self) -> ContentTypeProfileBuilder
fn clone(&self) -> ContentTypeProfileBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ContentTypeProfileBuilder
impl Debug for ContentTypeProfileBuilder
source§impl Default for ContentTypeProfileBuilder
impl Default for ContentTypeProfileBuilder
source§fn default() -> ContentTypeProfileBuilder
fn default() -> ContentTypeProfileBuilder
source§impl PartialEq for ContentTypeProfileBuilder
impl PartialEq for ContentTypeProfileBuilder
source§fn eq(&self, other: &ContentTypeProfileBuilder) -> bool
fn eq(&self, other: &ContentTypeProfileBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ContentTypeProfileBuilder
Auto Trait Implementations§
impl Freeze for ContentTypeProfileBuilder
impl RefUnwindSafe for ContentTypeProfileBuilder
impl Send for ContentTypeProfileBuilder
impl Sync for ContentTypeProfileBuilder
impl Unpin for ContentTypeProfileBuilder
impl UnwindSafe for ContentTypeProfileBuilder
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