pub struct RevokeKeepsake {
pub keepsake_id: KeepsakeId,
pub at: DateTime<Utc>,
pub context: CommandContext,
}Expand description
Revokes an active keepsake.
Fields§
§keepsake_id: KeepsakeIdKeepsake id.
at: DateTime<Utc>Command timestamp.
context: CommandContextAudit context.
Implementations§
Source§impl RevokeKeepsake
impl RevokeKeepsake
Sourcepub const fn new(
keepsake_id: KeepsakeId,
at: DateTime<Utc>,
context: CommandContext,
) -> Self
pub const fn new( keepsake_id: KeepsakeId, at: DateTime<Utc>, context: CommandContext, ) -> Self
Creates a revoke command.
Trait Implementations§
Source§impl Clone for RevokeKeepsake
impl Clone for RevokeKeepsake
Source§fn clone(&self) -> RevokeKeepsake
fn clone(&self) -> RevokeKeepsake
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RevokeKeepsake
impl Debug for RevokeKeepsake
Source§impl<'de> Deserialize<'de> for RevokeKeepsake
impl<'de> Deserialize<'de> for RevokeKeepsake
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
impl Eq for RevokeKeepsake
Source§impl PartialEq for RevokeKeepsake
impl PartialEq for RevokeKeepsake
Source§fn eq(&self, other: &RevokeKeepsake) -> bool
fn eq(&self, other: &RevokeKeepsake) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RevokeKeepsake
impl Serialize for RevokeKeepsake
impl StructuralPartialEq for RevokeKeepsake
Auto Trait Implementations§
impl Freeze for RevokeKeepsake
impl RefUnwindSafe for RevokeKeepsake
impl Send for RevokeKeepsake
impl Sync for RevokeKeepsake
impl Unpin for RevokeKeepsake
impl UnsafeUnpin for RevokeKeepsake
impl UnwindSafe for RevokeKeepsake
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