Added rust code

This commit is contained in:
kdeng00
2024-04-07 21:43:48 -04:00
parent d521802f4b
commit 0b4785681e
25 changed files with 405 additions and 0 deletions
+52
View File
@@ -0,0 +1,52 @@
use serde::{Deserialize, Serialize};
#[derive(Debug, Deserialize, Serialize)]
struct ActionManager {
action: String,
flags: Vec<models::Flags>,
params: Vec<String>,
param_count: i32,
}
impl ActionManager {
// TODO: Implement
pub fn retrieve_icarus_action(&self) -> models::IcarusAction {
return models::IcarusAction {
action: String::from(""),
flags: Vec::new(),
};
}
// TODO: Implement
fn supported_flags(&self) -> Vec<String> {
return Vec::new();
}
// TODO: Implement
fn supported_actions(&self) {
}
// TODO: Implement
fn initialize(&self) {
}
// TODO: Implement
fn validate_flags(&self) {
}
// TODO: Implement
fn is_valid_flag(&self, flag: &String) -> bool{
return false;
}
// TODO: Implement
fn does_flag_have_value(&self, flag: &String) -> bool {
return false;
}
// TODO: Implement
fn print_action(&self) {
}
// TODO: Implement
fn print_flags(&self) {
}
// TODO: Implement
fn parsed_flags(&self) -> Vec<String> {
return Vec::new();
}
}