pub trait TaskModule:
Serialize
+ DynClone
+ Debug
+ Send
+ Sync { }Expand description
Task module trait
If you want to add a new task module, you need to implement this trait https://crates.io/crates/erased-serde
use cdk_ansible_core::core::TaskModule;
use serde::Serialize;
#[derive(Serialize, Clone, Debug)]
struct SampleTaskModule {
x1: String,
}
impl TaskModule for SampleTaskModule {}