Updated models
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
use std::default::Default;
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::models;
|
||||
|
||||
// mod models {
|
||||
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
pub struct IcarusAction {
|
||||
@@ -10,6 +11,15 @@ pub struct IcarusAction {
|
||||
pub flags: Vec<models::flags::Flags>,
|
||||
}
|
||||
|
||||
impl Default for IcarusAction {
|
||||
fn default() -> Self {
|
||||
IcarusAction {
|
||||
action: String::new(),
|
||||
flags: Vec::new(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl IcarusAction {
|
||||
// TODO: Implement
|
||||
pub fn retrieve_flag_value(&self, flag: &String) -> String {
|
||||
@@ -19,4 +29,3 @@ impl IcarusAction {
|
||||
// TODO: Implement
|
||||
pub fn print_action_and_flags(&self) {}
|
||||
}
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user