pub struct CsrAttrsBuilder { /* private fields */ }Expand description
Builder for constructing CSR attributes responses.
Implementations§
Source§impl CsrAttrsBuilder
impl CsrAttrsBuilder
Sourcepub fn add_attribute(self, attr: CsrAttribute) -> Self
pub fn add_attribute(self, attr: CsrAttribute) -> Self
Adds an attribute to the response.
Sourcepub fn with_all_ml_dsa(self) -> Self
pub fn with_all_ml_dsa(self) -> Self
Adds all ML-DSA signature algorithm OIDs.
Sourcepub fn with_all_ml_kem(self) -> Self
pub fn with_all_ml_kem(self) -> Self
Adds all ML-KEM key encapsulation OIDs.
Sourcepub fn with_all_pqc(self) -> Self
pub fn with_all_pqc(self) -> Self
Adds all post-quantum algorithm OIDs (ML-DSA + ML-KEM).
Sourcepub fn with_composite_ml_dsa(self) -> Self
pub fn with_composite_ml_dsa(self) -> Self
Adds common composite ML-DSA OIDs.
Sourcepub fn with_standard_attrs(self) -> Self
pub fn with_standard_attrs(self) -> Self
Adds standard X.509 CSR attributes.
Sourcepub fn build(self) -> CsrAttrsResponse
pub fn build(self) -> CsrAttrsResponse
Builds the final response.
Trait Implementations§
Source§impl Clone for CsrAttrsBuilder
impl Clone for CsrAttrsBuilder
Source§fn clone(&self) -> CsrAttrsBuilder
fn clone(&self) -> CsrAttrsBuilder
Returns a duplicate 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 Debug for CsrAttrsBuilder
impl Debug for CsrAttrsBuilder
Source§impl Default for CsrAttrsBuilder
impl Default for CsrAttrsBuilder
Source§fn default() -> CsrAttrsBuilder
fn default() -> CsrAttrsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CsrAttrsBuilder
impl RefUnwindSafe for CsrAttrsBuilder
impl Send for CsrAttrsBuilder
impl Sync for CsrAttrsBuilder
impl Unpin for CsrAttrsBuilder
impl UnsafeUnpin for CsrAttrsBuilder
impl UnwindSafe for CsrAttrsBuilder
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