Skip to main content

authentik_client/models/
service_connection_request.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.8.6
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ServiceConnectionRequest : ServiceConnection Serializer
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ServiceConnectionRequest {
17    #[serde(rename = "name")]
18    pub name: String,
19    /// If enabled, use the local connection. Required Docker socket/Kubernetes Integration
20    #[serde(rename = "local", skip_serializing_if = "Option::is_none")]
21    pub local: Option<bool>,
22}
23
24impl ServiceConnectionRequest {
25    /// ServiceConnection Serializer
26    pub fn new(name: String) -> ServiceConnectionRequest {
27        ServiceConnectionRequest { name, local: None }
28    }
29}