pub struct EncryptedPushPayload {
pub challenge_id: String,
pub encrypted_context: Vec<u8>,
pub nonce: Vec<u8>,
pub encrypted_at: DateTime<Utc>,
}Expand description
Encrypted push payload (what goes over the wire)
Fields§
§challenge_id: StringChallenge ID (not sensitive)
encrypted_context: Vec<u8>Encrypted context (sensitive data)
nonce: Vec<u8>Nonce for decryption
encrypted_at: DateTime<Utc>Encrypted at
Trait Implementations§
Source§impl Clone for EncryptedPushPayload
impl Clone for EncryptedPushPayload
Source§fn clone(&self) -> EncryptedPushPayload
fn clone(&self) -> EncryptedPushPayload
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 EncryptedPushPayload
impl Debug for EncryptedPushPayload
Source§impl<'de> Deserialize<'de> for EncryptedPushPayload
impl<'de> Deserialize<'de> for EncryptedPushPayload
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 EncryptedPushPayload
impl RefUnwindSafe for EncryptedPushPayload
impl Send for EncryptedPushPayload
impl Sync for EncryptedPushPayload
impl Unpin for EncryptedPushPayload
impl UnsafeUnpin for EncryptedPushPayload
impl UnwindSafe for EncryptedPushPayload
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