pub struct WebhookResponse {
pub _type: String,
pub amount_sat: u64,
pub payment_hash: String,
pub external_id: Option<String>,
}Expand description
Webhook data
Fields§
§_type: StringWebhook response type
amount_sat: u64Amount received
payment_hash: StringPayment Hash
external_id: Option<String>External id if one was provided when invoice created
Trait Implementations§
Source§impl Clone for WebhookResponse
impl Clone for WebhookResponse
Source§fn clone(&self) -> WebhookResponse
fn clone(&self) -> WebhookResponse
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 WebhookResponse
impl Debug for WebhookResponse
Source§impl<'de> Deserialize<'de> for WebhookResponse
impl<'de> Deserialize<'de> for WebhookResponse
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 Hash for WebhookResponse
impl Hash for WebhookResponse
Source§impl PartialEq for WebhookResponse
impl PartialEq for WebhookResponse
Source§fn eq(&self, other: &WebhookResponse) -> bool
fn eq(&self, other: &WebhookResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WebhookResponse
impl Serialize for WebhookResponse
impl Eq for WebhookResponse
impl StructuralPartialEq for WebhookResponse
Auto Trait Implementations§
impl Freeze for WebhookResponse
impl RefUnwindSafe for WebhookResponse
impl Send for WebhookResponse
impl Sync for WebhookResponse
impl Unpin for WebhookResponse
impl UnsafeUnpin for WebhookResponse
impl UnwindSafe for WebhookResponse
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