#[non_exhaustive]pub struct DakCertificateMetadataBuilder { /* private fields */ }
Expand description
A builder for DakCertificateMetadata
.
Implementations§
source§impl DakCertificateMetadataBuilder
impl DakCertificateMetadataBuilder
sourcepub fn certificate_id(self, input: impl Into<String>) -> Self
pub fn certificate_id(self, input: impl Into<String>) -> Self
The certificate ID for the DAK.
This field is required.sourcepub fn set_certificate_id(self, input: Option<String>) -> Self
pub fn set_certificate_id(self, input: Option<String>) -> Self
The certificate ID for the DAK.
sourcepub fn get_certificate_id(&self) -> &Option<String>
pub fn get_certificate_id(&self) -> &Option<String>
The certificate ID for the DAK.
sourcepub fn max_allowed_signature(self, input: i32) -> Self
pub fn max_allowed_signature(self, input: i32) -> Self
The maximum number of signatures that the DAK can sign. A value of -1
indicates that there's no device limit.
sourcepub fn set_max_allowed_signature(self, input: Option<i32>) -> Self
pub fn set_max_allowed_signature(self, input: Option<i32>) -> Self
The maximum number of signatures that the DAK can sign. A value of -1
indicates that there's no device limit.
sourcepub fn get_max_allowed_signature(&self) -> &Option<i32>
pub fn get_max_allowed_signature(&self) -> &Option<i32>
The maximum number of signatures that the DAK can sign. A value of -1
indicates that there's no device limit.
sourcepub fn factory_support(self, input: bool) -> Self
pub fn factory_support(self, input: bool) -> Self
Whether factory support has been enabled.
sourcepub fn set_factory_support(self, input: Option<bool>) -> Self
pub fn set_factory_support(self, input: Option<bool>) -> Self
Whether factory support has been enabled.
sourcepub fn get_factory_support(&self) -> &Option<bool>
pub fn get_factory_support(&self) -> &Option<bool>
Whether factory support has been enabled.
sourcepub fn ap_id(self, input: impl Into<String>) -> Self
pub fn ap_id(self, input: impl Into<String>) -> Self
The advertised product ID (APID) that's used for pre-production and production applications.
sourcepub fn set_ap_id(self, input: Option<String>) -> Self
pub fn set_ap_id(self, input: Option<String>) -> Self
The advertised product ID (APID) that's used for pre-production and production applications.
sourcepub fn get_ap_id(&self) -> &Option<String>
pub fn get_ap_id(&self) -> &Option<String>
The advertised product ID (APID) that's used for pre-production and production applications.
sourcepub fn device_type_id(self, input: impl Into<String>) -> Self
pub fn device_type_id(self, input: impl Into<String>) -> Self
The device type ID that's used for prototyping applications.
sourcepub fn set_device_type_id(self, input: Option<String>) -> Self
pub fn set_device_type_id(self, input: Option<String>) -> Self
The device type ID that's used for prototyping applications.
sourcepub fn get_device_type_id(&self) -> &Option<String>
pub fn get_device_type_id(&self) -> &Option<String>
The device type ID that's used for prototyping applications.
sourcepub fn build(self) -> Result<DakCertificateMetadata, BuildError>
pub fn build(self) -> Result<DakCertificateMetadata, BuildError>
Consumes the builder and constructs a DakCertificateMetadata
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DakCertificateMetadataBuilder
impl Clone for DakCertificateMetadataBuilder
source§fn clone(&self) -> DakCertificateMetadataBuilder
fn clone(&self) -> DakCertificateMetadataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DakCertificateMetadataBuilder
impl Default for DakCertificateMetadataBuilder
source§fn default() -> DakCertificateMetadataBuilder
fn default() -> DakCertificateMetadataBuilder
source§impl PartialEq for DakCertificateMetadataBuilder
impl PartialEq for DakCertificateMetadataBuilder
source§fn eq(&self, other: &DakCertificateMetadataBuilder) -> bool
fn eq(&self, other: &DakCertificateMetadataBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DakCertificateMetadataBuilder
Auto Trait Implementations§
impl Freeze for DakCertificateMetadataBuilder
impl RefUnwindSafe for DakCertificateMetadataBuilder
impl Send for DakCertificateMetadataBuilder
impl Sync for DakCertificateMetadataBuilder
impl Unpin for DakCertificateMetadataBuilder
impl UnwindSafe for DakCertificateMetadataBuilder
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