2021-12-18 03:03:15 +00:00
|
|
|
use crate::models::parameters::GeoffreyParam;
|
2021-12-08 03:33:25 +00:00
|
|
|
use crate::models::Portal;
|
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
|
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
|
|
|
pub struct SetPortalParams {
|
|
|
|
pub loc_name: String,
|
|
|
|
pub portal: Portal,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl SetPortalParams {
|
|
|
|
pub fn new(loc_name: String, portal: Portal) -> Self {
|
2021-12-18 03:03:15 +00:00
|
|
|
Self { loc_name, portal }
|
2021-12-08 03:33:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-18 03:03:15 +00:00
|
|
|
impl GeoffreyParam for SetPortalParams {}
|