/*
 * Artifact Keeper API
 *
 * Enterprise artifact registry supporting 45+ package formats.
 *
 * The version of the OpenAPI document: 1.0.0-rc.3
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ProbeBody {
    #[serde(rename = "bandwidth_estimate_bps", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub bandwidth_estimate_bps: Option<Option<i64>>,
    #[serde(rename = "latency_ms")]
    pub latency_ms: i32,
    #[serde(rename = "target_peer_id")]
    pub target_peer_id: uuid::Uuid,
}

impl ProbeBody {
    pub fn new(latency_ms: i32, target_peer_id: uuid::Uuid) -> ProbeBody {
        ProbeBody {
            bandwidth_estimate_bps: None,
            latency_ms,
            target_peer_id,
        }
    }
}

