nethsm_sdk_rs/models/logging_config.rs
1/*
2 * NetHSM
3 *
4 * All endpoints expect exactly the specified JSON. Additional properties will cause a Bad Request Error (400). All HTTP errors contain a JSON structure with an explanation of type string. All [base64](https://tools.ietf.org/html/rfc4648#section-4) encoded values are Big Endian.
5 *
6 * The version of the OpenAPI document: v1
7 * Contact: Nitrokey <info@nitrokey.com>
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
12#[non_exhaustive]
13pub struct LoggingConfig {
14 #[serde(rename = "ipAddress")]
15 pub ip_address: String,
16 #[serde(rename = "port")]
17 pub port: i32,
18 #[serde(rename = "logLevel")]
19 pub log_level: crate::models::LogLevel,
20}
21
22impl LoggingConfig {
23 pub fn new(ip_address: String, port: i32, log_level: crate::models::LogLevel) -> LoggingConfig {
24 LoggingConfig {
25 ip_address,
26 port,
27 log_level,
28 }
29 }
30}