#[non_exhaustive]pub struct ActivateWebhookSecretParams {
pub idempotency_key: Option<String>,
}Expand description
Optional parameters for Client::activate_webhook_secret (POST /api/v1/webhooks/{id}/rotate-secret/activate).
Start from Default::default() and set what you need, through the field or the
chainable setter of the same name.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.idempotency_key: Option<String>Optional safe-retry key. Reuse the same value only when retrying the exact same mutation request body; a different body returns 422 and an in-flight matching request returns 409.
Sent as the Idempotency-Key header.
Implementations§
Source§impl ActivateWebhookSecretParams
impl ActivateWebhookSecretParams
Sourcepub fn idempotency_key(self, value: impl Into<String>) -> Self
pub fn idempotency_key(self, value: impl Into<String>) -> Self
Sets Idempotency-Key.
Trait Implementations§
Source§impl Clone for ActivateWebhookSecretParams
impl Clone for ActivateWebhookSecretParams
Source§impl Debug for ActivateWebhookSecretParams
impl Debug for ActivateWebhookSecretParams
impl StructuralPartialEq for ActivateWebhookSecretParams
Auto Trait Implementations§
impl Freeze for ActivateWebhookSecretParams
impl RefUnwindSafe for ActivateWebhookSecretParams
impl Send for ActivateWebhookSecretParams
impl Sync for ActivateWebhookSecretParams
impl Unpin for ActivateWebhookSecretParams
impl UnsafeUnpin for ActivateWebhookSecretParams
impl UnwindSafe for ActivateWebhookSecretParams
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