#[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 ==.