pub struct WebhookDataCreate {
pub id: Option<String>,
pub enabled: Option<bool>,
pub automatic_redelivery: Option<bool>,
pub url: Option<String>,
pub authorized_events: Option<Box<WebhookDataBaseAuthorizedEvents>>,
pub secret: Option<String>,
}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
secret: Option<String>Must be used by the callback receiver to ensure the delivery comes from BTCPay Server. BTCPay Server includes the BTCPay-Sig HTTP header, whose format is sha256=HMAC256(UTF8(webhook's secret), body). The pattern to authenticate the webhook is similar to how to secure webhooks in Github.
Implementations§
Source§impl WebhookDataCreate
impl WebhookDataCreate
pub fn new() -> WebhookDataCreate
Trait Implementations§
Source§impl Clone for WebhookDataCreate
impl Clone for WebhookDataCreate
Source§fn clone(&self) -> WebhookDataCreate
fn clone(&self) -> WebhookDataCreate
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 WebhookDataCreate
impl Debug for WebhookDataCreate
Source§impl Default for WebhookDataCreate
impl Default for WebhookDataCreate
Source§fn default() -> WebhookDataCreate
fn default() -> WebhookDataCreate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookDataCreate
impl<'de> Deserialize<'de> for WebhookDataCreate
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 WebhookDataCreate
impl PartialEq for WebhookDataCreate
Source§impl Serialize for WebhookDataCreate
impl Serialize for WebhookDataCreate
impl StructuralPartialEq for WebhookDataCreate
Auto Trait Implementations§
impl Freeze for WebhookDataCreate
impl RefUnwindSafe for WebhookDataCreate
impl Send for WebhookDataCreate
impl Sync for WebhookDataCreate
impl Unpin for WebhookDataCreate
impl UnwindSafe for WebhookDataCreate
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