dtz_containers/models/update_service_request_login.rs
1/*
2 * DTZ Containers
3 *
4 * a generated client for the DTZ Containers API
5 *
6 * Contact: jens@apimeister.com
7 * Generated by: https://openapi-generator.tech
8 */
9
10#[allow(unused_imports)]
11use crate::models;
12#[allow(unused_imports)]
13use serde::{Deserialize, Serialize};
14
15/// UpdateServiceRequestLogin : a login can only be added, to remove the login functionality, either set the providerName to an empty string or recreate the service without the login property
16#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
17pub struct UpdateServiceRequestLogin {
18 #[serde(rename = "providerName")]
19 pub provider_name: String,
20}
21
22impl UpdateServiceRequestLogin {
23 /// a login can only be added, to remove the login functionality, either set the providerName to an empty string or recreate the service without the login property
24 pub fn new(provider_name: String) -> UpdateServiceRequestLogin {
25 UpdateServiceRequestLogin {
26 provider_name,
27 }
28 }
29}
30