pub struct X509RevokedBuilder(/* private fields */);Expand description
A builder used to construct an X509Revoked.
Implementations§
Source§impl X509RevokedBuilder
impl X509RevokedBuilder
Sourcepub fn new() -> Result<Self, ErrorStack>
pub fn new() -> Result<Self, ErrorStack>
Creates a new builder.
This corresponds to X509_REVOKED_new.
Sourcepub fn set_revocation_date(
&mut self,
date: &Asn1TimeRef,
) -> Result<(), ErrorStack>
pub fn set_revocation_date( &mut self, date: &Asn1TimeRef, ) -> Result<(), ErrorStack>
Set the revocation date of the X509Revoked.
This corresponds to X509_REVOKED_set_revocationDate.
Sourcepub fn set_serial_number(
&mut self,
serial: &Asn1IntegerRef,
) -> Result<(), ErrorStack>
pub fn set_serial_number( &mut self, serial: &Asn1IntegerRef, ) -> Result<(), ErrorStack>
Set the serial number of the X509Revoked.
This corresponds to X509_REVOKED_set_serialNumber.
Sourcepub fn build(self) -> X509Revoked
pub fn build(self) -> X509Revoked
Consumes the builder, returning the X509Revoked.
Auto Trait Implementations§
impl Freeze for X509RevokedBuilder
impl RefUnwindSafe for X509RevokedBuilder
impl Send for X509RevokedBuilder
impl Sync for X509RevokedBuilder
impl Unpin for X509RevokedBuilder
impl UnsafeUnpin for X509RevokedBuilder
impl UnwindSafe for X509RevokedBuilder
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