limit_lens/models/create_session_request.rs
1/*
2 * Limit Lens API
3 *
4 * A simple API for testing and visualizing rate limiters in real-time. Monitor request throughput and see how your rate limiting algorithms perform under load.
5 *
6 * The version of the OpenAPI document: 0.6.1
7 * Contact: sharmaninenine@gmail.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// CreateSessionRequest : Request for creating a new test session
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CreateSessionRequest {
17 /// Optional name for the test session
18 #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19 pub name: Option<Option<String>>,
20}
21
22impl CreateSessionRequest {
23 /// Request for creating a new test session
24 pub fn new() -> CreateSessionRequest {
25 CreateSessionRequest {
26 name: None,
27 }
28 }
29}
30