pub struct NotificationPayload { /* private fields */ }Implementations§
Source§impl NotificationPayload
impl NotificationPayload
Sourcepub fn validate_signature(
self,
key: SignatureKey,
) -> Option<ValidSignatureNotification>
pub fn validate_signature( self, key: SignatureKey, ) -> Option<ValidSignatureNotification>
Attempt to validate signature with provided key.
If it is not valid, this will return None.
pub fn notification(&self) -> &Notification
Trait Implementations§
Source§impl Debug for NotificationPayload
impl Debug for NotificationPayload
Source§impl<'de> Deserialize<'de> for NotificationPayload
impl<'de> Deserialize<'de> for NotificationPayload
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 NotificationPayload
impl RefUnwindSafe for NotificationPayload
impl Send for NotificationPayload
impl Sync for NotificationPayload
impl Unpin for NotificationPayload
impl UnwindSafe for NotificationPayload
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