pub struct AttestationConfigBuilder { /* private fields */ }
Expand description
Builder for AttestationConfig
.
Implementations§
source§impl AttestationConfigBuilder
impl AttestationConfigBuilder
sourcepub fn supported_signature_algs(
&mut self,
supported_signature_algs: impl Into<Vec<SignatureAlgId>>,
) -> &mut Self
pub fn supported_signature_algs( &mut self, supported_signature_algs: impl Into<Vec<SignatureAlgId>>, ) -> &mut Self
Sets the supported signature algorithms.
sourcepub fn supported_hash_algs(
&mut self,
supported_hash_algs: impl Into<Vec<HashAlgId>>,
) -> &mut Self
pub fn supported_hash_algs( &mut self, supported_hash_algs: impl Into<Vec<HashAlgId>>, ) -> &mut Self
Sets the supported hash algorithms.
sourcepub fn supported_fields(
&mut self,
supported_fields: impl Into<Vec<FieldKind>>,
) -> &mut Self
pub fn supported_fields( &mut self, supported_fields: impl Into<Vec<FieldKind>>, ) -> &mut Self
Sets the supported attestation fields.
sourcepub fn build(&self) -> Result<AttestationConfig, AttestationConfigError>
pub fn build(&self) -> Result<AttestationConfig, AttestationConfigError>
Builds the configuration.
Trait Implementations§
source§impl Debug for AttestationConfigBuilder
impl Debug for AttestationConfigBuilder
Auto Trait Implementations§
impl Freeze for AttestationConfigBuilder
impl RefUnwindSafe for AttestationConfigBuilder
impl Send for AttestationConfigBuilder
impl Sync for AttestationConfigBuilder
impl Unpin for AttestationConfigBuilder
impl UnwindSafe for AttestationConfigBuilder
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more