pub struct SerializablePatternRevocation {
pub pattern: String,
pub mode: RevocationMode,
pub timestamp: f64,
pub expires: Option<f64>,
pub reason: Option<String>,
}Expand description
Serializable form of PatternRevocation
Fields§
§pattern: StringPattern string (glob format)
mode: RevocationModeRevocation mode
timestamp: f64When the revocation was issued
expires: Option<f64>Optional expiration time
reason: Option<String>Reason for revocation
Implementations§
Source§impl SerializablePatternRevocation
impl SerializablePatternRevocation
Sourcepub fn into_pattern_revocation(self) -> PatternRevocation
pub fn into_pattern_revocation(self) -> PatternRevocation
Convert to PatternRevocation
Trait Implementations§
Source§impl Clone for SerializablePatternRevocation
impl Clone for SerializablePatternRevocation
Source§fn clone(&self) -> SerializablePatternRevocation
fn clone(&self) -> SerializablePatternRevocation
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<'de> Deserialize<'de> for SerializablePatternRevocation
impl<'de> Deserialize<'de> for SerializablePatternRevocation
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
Source§impl From<&PatternRevocation> for SerializablePatternRevocation
impl From<&PatternRevocation> for SerializablePatternRevocation
Source§fn from(rev: &PatternRevocation) -> Self
fn from(rev: &PatternRevocation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SerializablePatternRevocation
impl RefUnwindSafe for SerializablePatternRevocation
impl Send for SerializablePatternRevocation
impl Sync for SerializablePatternRevocation
impl Unpin for SerializablePatternRevocation
impl UnwindSafe for SerializablePatternRevocation
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