pub struct Attributes {
pub url: String,
pub description: Option<String>,
pub secret_key: Option<String>,
pub created_at: String,
}
Fields§
§url: String
The URL that this webhook is configured to POST
events to.
description: Option<String>
An optional description that was provided at the time the webhook was created.
secret_key: Option<String>
A shared secret key used to sign all webhook events sent to the configured webhook URL. This field is returned only once, upon the initial creation of the webhook. If lost, create a new webhook and delete this webhook.
The webhook URL receives a request with a X-Up-Authenticity-Signature
header, which is the SHA-256 HMAC of the entire raw request body signed
using this secretKey
. It is advised to compute and check this
signature to verify the authenticity of requests sent to the webhook
URL. See Handling webhook events for full details.
created_at: String
The date-time at which this webhook was created.
Trait Implementations§
Source§impl Debug for Attributes
impl Debug for Attributes
Source§impl<'de> Deserialize<'de> for Attributes
impl<'de> Deserialize<'de> for Attributes
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
Auto Trait Implementations§
impl Freeze for Attributes
impl RefUnwindSafe for Attributes
impl Send for Attributes
impl Sync for Attributes
impl Unpin for Attributes
impl UnwindSafe for Attributes
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