pub struct WebhookDataUpdate {
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. If left out, null, or empty, the secret will not be changed.
Implementations§
Source§impl WebhookDataUpdate
impl WebhookDataUpdate
pub fn new() -> WebhookDataUpdate
Trait Implementations§
Source§impl Clone for WebhookDataUpdate
impl Clone for WebhookDataUpdate
Source§fn clone(&self) -> WebhookDataUpdate
fn clone(&self) -> WebhookDataUpdate
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 WebhookDataUpdate
impl Debug for WebhookDataUpdate
Source§impl Default for WebhookDataUpdate
impl Default for WebhookDataUpdate
Source§fn default() -> WebhookDataUpdate
fn default() -> WebhookDataUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookDataUpdate
impl<'de> Deserialize<'de> for WebhookDataUpdate
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 WebhookDataUpdate
impl PartialEq for WebhookDataUpdate
Source§impl Serialize for WebhookDataUpdate
impl Serialize for WebhookDataUpdate
impl StructuralPartialEq for WebhookDataUpdate
Auto Trait Implementations§
impl Freeze for WebhookDataUpdate
impl RefUnwindSafe for WebhookDataUpdate
impl Send for WebhookDataUpdate
impl Sync for WebhookDataUpdate
impl Unpin for WebhookDataUpdate
impl UnwindSafe for WebhookDataUpdate
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