svix 1.94.0

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

#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)]
pub struct StreamPatch {
    /// The Stream's description.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,

    #[serde(skip_serializing_if = "Option::is_none")]
    pub metadata: Option<std::collections::HashMap<String, String>>,

    /// An optional unique identifier for the stream.
    #[serde(default, skip_serializing_if = "JsOption::is_undefined")]
    pub uid: JsOption<String>,
}

impl StreamPatch {
    pub fn new() -> Self {
        Self {
            description: None,
            metadata: None,
            uid: JsOption::Undefined,
        }
    }
}