dummy.rs
1 use serde::{Deserialize, Serialize}; 2 3 use crate::{ 4 action::{ActionError, Context}, 5 action_impl::ActionImpl, 6 runlog::RunLogSource, 7 }; 8 9 /// A dummy action that does nothing. 10 /// 11 /// This is meant for testing serialization and other parts of Ambient. 12 #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] 13 pub struct Dummy; 14 15 impl ActionImpl for Dummy { 16 fn execute(&self, context: &mut Context) -> Result<(), ActionError> { 17 context.runlog().debug(RunLogSource::Plan, "dummy action"); 18 Ok(()) 19 } 20 }