use std::hash::Hash;
use serde::{Deserialize, Serialize};
#[derive(Debug, PartialEq, Deserialize, Serialize, Clone, Eq, Hash)]
#[cfg_attr(feature = "openapi", derive(utoipa::ToSchema))]
pub struct UDPEndpoint {
pub source_address: Option<String>,
pub destination_group_address: String,
pub port: u16,
}
impl UDPEndpoint {
pub fn new(src: Option<String>, dest: String, port: u16) -> Self {
Self {
source_address: src,
destination_group_address: dest,
port,
}
}
}