pub struct RevocationResult {
pub status: RevocationStatus,
pub method: RevocationMethod,
pub responder_url: Option<String>,
pub checked_at: String,
pub produced_at: Option<String>,
pub next_update: Option<String>,
pub serial_number: String,
}Available on crate features
signatures and ocsp only.Expand description
Result of a revocation check.
Fields§
§status: RevocationStatusThe revocation status.
method: RevocationMethodMethod used for the check.
responder_url: Option<String>URL of the responder or CRL.
checked_at: StringWhen this check was performed (ISO 8601).
produced_at: Option<String>When the response was produced (ISO 8601).
next_update: Option<String>When this response should be considered stale (ISO 8601).
serial_number: StringCertificate serial number that was checked.
Implementations§
Source§impl RevocationResult
impl RevocationResult
Sourcepub fn new(
status: RevocationStatus,
method: RevocationMethod,
serial_number: String,
) -> Self
pub fn new( status: RevocationStatus, method: RevocationMethod, serial_number: String, ) -> Self
Create a new revocation result.
Sourcepub fn with_responder(self, url: impl Into<String>) -> Self
pub fn with_responder(self, url: impl Into<String>) -> Self
Set the responder URL.
Sourcepub fn with_produced_at(self, time: impl Into<String>) -> Self
pub fn with_produced_at(self, time: impl Into<String>) -> Self
Set the produced_at time.
Sourcepub fn with_next_update(self, time: impl Into<String>) -> Self
pub fn with_next_update(self, time: impl Into<String>) -> Self
Set the next_update time.
Trait Implementations§
Source§impl Clone for RevocationResult
impl Clone for RevocationResult
Source§fn clone(&self) -> RevocationResult
fn clone(&self) -> RevocationResult
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 RevocationResult
impl Debug for RevocationResult
Source§impl<'de> Deserialize<'de> for RevocationResult
impl<'de> Deserialize<'de> for RevocationResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RevocationResult
impl RefUnwindSafe for RevocationResult
impl Send for RevocationResult
impl Sync for RevocationResult
impl Unpin for RevocationResult
impl UnsafeUnpin for RevocationResult
impl UnwindSafe for RevocationResult
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