pub struct B2NotificationConfiguration {
pub url: String,
pub target_type: B2EventNotificationTargetType,
pub hmac_sha256_signing_secret: Option<String>,
pub custom_headers: Option<HashMap<String, String>>,
}Fields§
§url: StringThe URL for the webhook.
target_type: B2EventNotificationTargetTypeThe type of the target configuration, currently “webhook” only.
hmac_sha256_signing_secret: Option<String>The signing secret for use in verifying the `X-Bz-Event-Notification-Signature``.
custom_headers: Option<HashMap<String, String>>When present, additional header name/value pairs to be sent on the webhook invocation.
Trait Implementations§
Source§impl Clone for B2NotificationConfiguration
impl Clone for B2NotificationConfiguration
Source§fn clone(&self) -> B2NotificationConfiguration
fn clone(&self) -> B2NotificationConfiguration
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 B2NotificationConfiguration
impl Debug for B2NotificationConfiguration
Source§impl<'de> Deserialize<'de> for B2NotificationConfiguration
impl<'de> Deserialize<'de> for B2NotificationConfiguration
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 B2NotificationConfiguration
impl RefUnwindSafe for B2NotificationConfiguration
impl Send for B2NotificationConfiguration
impl Sync for B2NotificationConfiguration
impl Unpin for B2NotificationConfiguration
impl UnwindSafe for B2NotificationConfiguration
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