pub struct CaBuilder { /* private fields */ }
Expand description
CertificateParams from which an Ca Certificate can be built
Implementations§
Source§impl CaBuilder
impl CaBuilder
Sourcepub fn new(params: CertificateParams, alg: KeyPairAlgorithm) -> Self
pub fn new(params: CertificateParams, alg: KeyPairAlgorithm) -> Self
Initialize CaBuilder
Sourcepub fn country_name(self, country: &str) -> Result<Self, Error>
pub fn country_name(self, country: &str) -> Result<Self, Error>
Add CountryName to distinguished_name
. Multiple calls will
replace previous value.
Sourcepub fn organization_name(self, name: &str) -> Self
pub fn organization_name(self, name: &str) -> Self
Add OrganizationName to distinguished_name
. Multiple calls will
replace previous value.
Auto Trait Implementations§
impl Freeze for CaBuilder
impl RefUnwindSafe for CaBuilder
impl Send for CaBuilder
impl Sync for CaBuilder
impl Unpin for CaBuilder
impl UnwindSafe for CaBuilder
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