svix 1.96.1

Svix webhooks API client and webhook verification library
Documentation
// this file is @generated
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)]
pub struct TailscaleConfig {
    /// Shared secret for Tailscale Webhooks
    pub secret: String,

    /// Grace period (in seconds) for the timestamp.
    ///
    /// If not passed, timestamp age will not be checked.
    #[serde(rename = "timestampGraceSeconds")]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub timestamp_grace_seconds: Option<i32>,
}

impl TailscaleConfig {
    pub fn new(secret: String) -> Self {
        Self {
            secret,
            timestamp_grace_seconds: None,
        }
    }
}