1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
/*
Appellation: gateway <middleware>
Contrib: FL03 <jo3mccain@icloud.com>
Description: ... Summary ...
*/
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
pub struct GatewayMiddleware {
pub handle: String,
}
impl GatewayMiddleware {
pub fn new(handle: String) -> Self {
Self { handle }
}
}
impl Default for GatewayMiddleware {
fn default() -> Self {
Self::new(Default::default())
}
}