windmill_api/models/push_config.rs
1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.626.0
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// PushConfig : Configuration for push delivery mode.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PushConfig {
17 /// The audience claim for OIDC tokens used in push authentication.
18 #[serde(rename = "audience", skip_serializing_if = "Option::is_none")]
19 pub audience: Option<String>,
20 /// If true, push messages will include OIDC authentication tokens.
21 #[serde(rename = "authenticate")]
22 pub authenticate: bool,
23}
24
25impl PushConfig {
26 /// Configuration for push delivery mode.
27 pub fn new(authenticate: bool) -> PushConfig {
28 PushConfig {
29 audience: None,
30 authenticate,
31 }
32 }
33}
34