pub struct CommandMessage {
pub id: String,
pub timestamp: DateTime<Utc>,
pub target_agent: Option<String>,
pub command: String,
pub args: Vec<String>,
pub work_dir: Option<String>,
pub env_vars: HashMap<String, String>,
pub timeout_secs: Option<u64>,
pub priority: MessagePriority,
}Expand description
Command message for agent communication.
Fields§
§id: StringUnique message identifier
timestamp: DateTime<Utc>Message timestamp
target_agent: Option<String>Target agent name (empty for broadcast)
command: StringCommand to execute
args: Vec<String>Command arguments
work_dir: Option<String>Working directory for command
env_vars: HashMap<String, String>Environment variables for this command
timeout_secs: Option<u64>Timeout for this command
priority: MessagePriorityMessage priority
Trait Implementations§
Source§impl Clone for CommandMessage
impl Clone for CommandMessage
Source§impl Debug for CommandMessage
impl Debug for CommandMessage
Source§impl<'de> Deserialize<'de> for CommandMessage
impl<'de> Deserialize<'de> for CommandMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommandMessage
impl RefUnwindSafe for CommandMessage
impl Send for CommandMessage
impl Sync for CommandMessage
impl Unpin for CommandMessage
impl UnsafeUnpin for CommandMessage
impl UnwindSafe for CommandMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more