pub struct WebhookNotification {
pub method: WebhookNotificationMethod,
}Expand description
Webhook notification payload.
Fields§
§method: WebhookNotificationMethodNotification method with parameters.
Implementations§
Source§impl WebhookNotification
impl WebhookNotification
Sourcepub fn new(method: WebhookNotificationMethod) -> Self
pub fn new(method: WebhookNotificationMethod) -> Self
Create a new webhook notification.
Sourcepub fn webhook_registered() -> Self
pub fn webhook_registered() -> Self
Create a webhook_registered notification.
Sourcepub fn payment_incoming() -> Self
pub fn payment_incoming() -> Self
Create a payment_incoming notification.
Sourcepub fn expiry_soon(timeout: u32) -> Self
pub fn expiry_soon(timeout: u32) -> Self
Create an expiry_soon notification.
Sourcepub fn liquidity_management_request() -> Self
pub fn liquidity_management_request() -> Self
Create a liquidity_management_request notification.
Sourcepub fn onion_message_incoming() -> Self
pub fn onion_message_incoming() -> Self
Create an onion_message_incoming notification.
Trait Implementations§
Source§impl Clone for WebhookNotification
impl Clone for WebhookNotification
Source§fn clone(&self) -> WebhookNotification
fn clone(&self) -> WebhookNotification
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 WebhookNotification
impl Debug for WebhookNotification
Source§impl<'de> Deserialize<'de> for WebhookNotification
impl<'de> Deserialize<'de> for WebhookNotification
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 PartialEq for WebhookNotification
impl PartialEq for WebhookNotification
Source§impl Readable for WebhookNotification
impl Readable for WebhookNotification
Source§impl Serialize for WebhookNotification
impl Serialize for WebhookNotification
Source§impl Writeable for WebhookNotification
impl Writeable for WebhookNotification
impl Eq for WebhookNotification
impl StructuralPartialEq for WebhookNotification
Auto Trait Implementations§
impl Freeze for WebhookNotification
impl RefUnwindSafe for WebhookNotification
impl Send for WebhookNotification
impl Sync for WebhookNotification
impl Unpin for WebhookNotification
impl UnwindSafe for WebhookNotification
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> LengthReadable for Twhere
T: Readable,
impl<T> LengthReadable for Twhere
T: Readable,
Source§fn read_from_fixed_length_buffer<R>(reader: &mut R) -> Result<T, DecodeError>where
R: LengthLimitedRead,
fn read_from_fixed_length_buffer<R>(reader: &mut R) -> Result<T, DecodeError>where
R: LengthLimitedRead,
Reads a
Self in from the given LengthLimitedRead.