uapi-sdk-rust 0.1.15

UAPI Rust SDK - idiomatic, typed, domain-driven API client.
Documentation
/*
 * UAPI
 *
 * UAPI 官方接口文档
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetNetworkPingmyip200Response {
    /// 当前客户端的公网 IP 地址。
    #[serde(rename = "client_ip", skip_serializing_if = "Option::is_none")]
    pub client_ip: Option<String>,
    /// 是否成功完成对当前客户端 IP 的 Ping。
    #[serde(rename = "ping_successful", skip_serializing_if = "Option::is_none")]
    pub ping_successful: Option<bool>,
    /// 操作结果说明。成功时通常会附带平均延迟信息。
    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
}

impl GetNetworkPingmyip200Response {
    pub fn new() -> GetNetworkPingmyip200Response {
        GetNetworkPingmyip200Response {
            client_ip: None,
            ping_successful: None,
            message: None,
        }
    }
}