#[non_exhaustive]pub struct EncryptionAlgorithmOptionsBuilder { /* private fields */ }
Expand description
A builder for EncryptionAlgorithmOptions
.
Implementations§
source§impl EncryptionAlgorithmOptionsBuilder
impl EncryptionAlgorithmOptionsBuilder
sourcepub fn allowed_values(self, input: EncryptionAlgorithm) -> Self
pub fn allowed_values(self, input: EncryptionAlgorithm) -> Self
Appends an item to allowed_values
.
To override the contents of this collection use set_allowed_values
.
The set of accepted encryption algorithms that are allowed in a code-signing job.
sourcepub fn set_allowed_values(self, input: Option<Vec<EncryptionAlgorithm>>) -> Self
pub fn set_allowed_values(self, input: Option<Vec<EncryptionAlgorithm>>) -> Self
The set of accepted encryption algorithms that are allowed in a code-signing job.
sourcepub fn get_allowed_values(&self) -> &Option<Vec<EncryptionAlgorithm>>
pub fn get_allowed_values(&self) -> &Option<Vec<EncryptionAlgorithm>>
The set of accepted encryption algorithms that are allowed in a code-signing job.
sourcepub fn default_value(self, input: EncryptionAlgorithm) -> Self
pub fn default_value(self, input: EncryptionAlgorithm) -> Self
The default encryption algorithm that is used by a code-signing job.
This field is required.sourcepub fn set_default_value(self, input: Option<EncryptionAlgorithm>) -> Self
pub fn set_default_value(self, input: Option<EncryptionAlgorithm>) -> Self
The default encryption algorithm that is used by a code-signing job.
sourcepub fn get_default_value(&self) -> &Option<EncryptionAlgorithm>
pub fn get_default_value(&self) -> &Option<EncryptionAlgorithm>
The default encryption algorithm that is used by a code-signing job.
sourcepub fn build(self) -> Result<EncryptionAlgorithmOptions, BuildError>
pub fn build(self) -> Result<EncryptionAlgorithmOptions, BuildError>
Consumes the builder and constructs a EncryptionAlgorithmOptions
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for EncryptionAlgorithmOptionsBuilder
impl Clone for EncryptionAlgorithmOptionsBuilder
source§fn clone(&self) -> EncryptionAlgorithmOptionsBuilder
fn clone(&self) -> EncryptionAlgorithmOptionsBuilder
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 moresource§impl Default for EncryptionAlgorithmOptionsBuilder
impl Default for EncryptionAlgorithmOptionsBuilder
source§fn default() -> EncryptionAlgorithmOptionsBuilder
fn default() -> EncryptionAlgorithmOptionsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for EncryptionAlgorithmOptionsBuilder
impl PartialEq for EncryptionAlgorithmOptionsBuilder
source§fn eq(&self, other: &EncryptionAlgorithmOptionsBuilder) -> bool
fn eq(&self, other: &EncryptionAlgorithmOptionsBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EncryptionAlgorithmOptionsBuilder
Auto Trait Implementations§
impl Freeze for EncryptionAlgorithmOptionsBuilder
impl RefUnwindSafe for EncryptionAlgorithmOptionsBuilder
impl Send for EncryptionAlgorithmOptionsBuilder
impl Sync for EncryptionAlgorithmOptionsBuilder
impl Unpin for EncryptionAlgorithmOptionsBuilder
impl UnwindSafe for EncryptionAlgorithmOptionsBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.