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, Default, Serialize, Deserialize)]
12pub struct LoggingConfig {
13 #[serde(rename = "ipAddress")]
14 pub ip_address: String,
15 #[serde(rename = "port")]
16 pub port: i32,
17 #[serde(rename = "logLevel")]
18 pub log_level: crate::models::LogLevel,
19}
20
21impl LoggingConfig {
22 pub fn new(ip_address: String, port: i32, log_level: crate::models::LogLevel) -> LoggingConfig {
23 LoggingConfig {
24 ip_address,
25 port,
26 log_level,
27 }
28 }
29}