#[non_exhaustive]pub struct RevocationDetails {
pub revocation_state: RevocationReason,
pub revocation_time: Option<Timestamp>,
/* private fields */
}Expand description
Describes fields that are relavent to the revocation of a Certificate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.revocation_state: RevocationReasonIndicates why a Certificate was revoked.
revocation_time: Option<Timestamp>The time at which this Certificate was revoked.
Implementations§
Source§impl RevocationDetails
impl RevocationDetails
pub fn new() -> Self
Sourcepub fn set_revocation_state<T: Into<RevocationReason>>(self, v: T) -> Self
pub fn set_revocation_state<T: Into<RevocationReason>>(self, v: T) -> Self
Sets the value of revocation_state.
§Example
ⓘ
use google_cloud_security_privateca_v1::model::RevocationReason;
let x0 = RevocationDetails::new().set_revocation_state(RevocationReason::KeyCompromise);
let x1 = RevocationDetails::new().set_revocation_state(RevocationReason::CertificateAuthorityCompromise);
let x2 = RevocationDetails::new().set_revocation_state(RevocationReason::AffiliationChanged);Sourcepub fn set_revocation_time<T>(self, v: T) -> Self
pub fn set_revocation_time<T>(self, v: T) -> Self
Sets the value of revocation_time.
§Example
ⓘ
use wkt::Timestamp;
let x = RevocationDetails::new().set_revocation_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_revocation_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_revocation_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of revocation_time.
§Example
ⓘ
use wkt::Timestamp;
let x = RevocationDetails::new().set_or_clear_revocation_time(Some(Timestamp::default()/* use setters */));
let x = RevocationDetails::new().set_or_clear_revocation_time(None::<Timestamp>);Trait Implementations§
Source§impl Clone for RevocationDetails
impl Clone for RevocationDetails
Source§fn clone(&self) -> RevocationDetails
fn clone(&self) -> RevocationDetails
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 RevocationDetails
impl Debug for RevocationDetails
Source§impl Default for RevocationDetails
impl Default for RevocationDetails
Source§fn default() -> RevocationDetails
fn default() -> RevocationDetails
Returns the “default value” for a type. Read more
Source§impl Message for RevocationDetails
impl Message for RevocationDetails
Source§impl PartialEq for RevocationDetails
impl PartialEq for RevocationDetails
impl StructuralPartialEq for RevocationDetails
Auto Trait Implementations§
impl Freeze for RevocationDetails
impl RefUnwindSafe for RevocationDetails
impl Send for RevocationDetails
impl Sync for RevocationDetails
impl Unpin for RevocationDetails
impl UnwindSafe for RevocationDetails
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