pub struct WebhookData {
pub id: Option<String>,
pub enabled: Option<bool>,
pub automatic_redelivery: Option<bool>,
pub url: Option<String>,
pub authorized_events: Option<Box<WebhookDataBaseAuthorizedEvents>>,
}Fields§
§id: Option<String>The id of the webhook
enabled: Option<bool>Whether this webhook is enabled or not
automatic_redelivery: Option<bool>If true, BTCPay Server will retry to redeliver any failed delivery after 10 seconds, 1 minutes and up to 6 times after 10 minutes.
url: Option<String>The endpoint where BTCPay Server will make the POST request with the webhook body
Implementations§
Source§impl WebhookData
impl WebhookData
pub fn new() -> WebhookData
Trait Implementations§
Source§impl Clone for WebhookData
impl Clone for WebhookData
Source§fn clone(&self) -> WebhookData
fn clone(&self) -> WebhookData
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 WebhookData
impl Debug for WebhookData
Source§impl Default for WebhookData
impl Default for WebhookData
Source§fn default() -> WebhookData
fn default() -> WebhookData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookData
impl<'de> Deserialize<'de> for WebhookData
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 WebhookData
impl PartialEq for WebhookData
Source§impl Serialize for WebhookData
impl Serialize for WebhookData
impl StructuralPartialEq for WebhookData
Auto Trait Implementations§
impl Freeze for WebhookData
impl RefUnwindSafe for WebhookData
impl Send for WebhookData
impl Sync for WebhookData
impl Unpin for WebhookData
impl UnwindSafe for WebhookData
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