/*
* VPNDetection API
*
* The VPNDetection API: classify any IP address, and download the databases behind the answers. Lookups need no API key: Unlimited, the free plan, answers any address with no daily or monthly cap, with a key or without one. Every paid plan answers every field, and a free account tries them. Unlimited's answers may be used commercially, but not redistributed or used in a competing service (https://vpndetection.io/terms#no-key). See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
*
* The version of the OpenAPI document: 2026.11.20
* Contact: support@vpndetection.io
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// SatelliteDetail : The satellite operator whose space the address is, from our Satellite IP database. Every key is present when the object is populated; the object is `{}` when `is_satellite` is false.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SatelliteDetail {
/// The operator's ID in Satellite IP Provider.
#[serde(rename = "provider", skip_serializing_if = "Option::is_none")]
pub provider: Option<String>,
/// The operator's name.
#[serde(rename = "provider_name", skip_serializing_if = "Option::is_none")]
pub provider_name: Option<String>,
/// The orbit: `leo`, `meo` or `geo`.
#[serde(rename = "orbit", skip_serializing_if = "Option::is_none")]
pub orbit: Option<String>,
/// Who the space serves, such as consumer or maritime.
#[serde(rename = "segment", skip_serializing_if = "Option::is_none")]
pub segment: Option<String>,
/// ISO 3166 country code.
#[serde(rename = "country", skip_serializing_if = "Option::is_none")]
pub country: Option<String>,
/// The AS the operator announces it from.
#[serde(rename = "asn", skip_serializing_if = "Option::is_none")]
pub asn: Option<i32>,
/// `high`, `medium` or `low`.
#[serde(rename = "confidence", skip_serializing_if = "Option::is_none")]
pub confidence: Option<String>,
}
impl SatelliteDetail {
/// The satellite operator whose space the address is, from our Satellite IP database. Every key is present when the object is populated; the object is `{}` when `is_satellite` is false.
pub fn new() -> SatelliteDetail {
SatelliteDetail {
provider: None,
provider_name: None,
orbit: None,
segment: None,
country: None,
asn: None,
confidence: None,
}
}
}