rusttwald/models/newsletter_subscribe_user_request.rs
1/*
2 * Mittwald API
3 *
4 * ## Introduction This OpenAPI spec documents the mittwald API. It follows the [OpenAPI 3.0.0 specification](https://spec.openapis.org/oas/v3.0.0.html). ## Authentication You will need an API token to access the API. You can obtain one by logging into the [mStudio](https://studio.mittwald.de) and navigating to the [\"API Tokens\" section in the user menu](https://studio.mittwald.de/app/profile/api-tokens). When making requests to the API, you can authenticate by passing your API token in the `X-Access-Token` header or as a bearer token. ## Rate Limiting Please note that usage of the API is rate-limited to prevent abuse. You can inspect the rate limiting for your current user by observing the `X-Ratelimit-*` headers included in each response. ## mStudio A main consumer of the mittwald API is the management interface for our customers, the [mStudio](https://studio.mittwald.de). ## Contact and support For support, please use the [mStudio support area](https://studio.mittwald.de/app/support/conversations) or drop us an email at [support@mittwald.de](mailto:support@mittwald.de). For security issues, please report to [security@mittwald.de](mailto:security@mittwald.de).
5 *
6 * The version of the OpenAPI document: 2.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct NewsletterSubscribeUserRequest {
16 #[serde(rename = "firstName", skip_serializing_if = "Option::is_none")]
17 pub first_name: Option<String>,
18 #[serde(rename = "lastName", skip_serializing_if = "Option::is_none")]
19 pub last_name: Option<String>,
20}
21
22impl NewsletterSubscribeUserRequest {
23 pub fn new() -> NewsletterSubscribeUserRequest {
24 NewsletterSubscribeUserRequest {
25 first_name: None,
26 last_name: None,
27 }
28 }
29}
30