pub struct CommandPayload {
pub command_id: String,
pub command_type: String,
pub agent_id: Option<String>,
pub content: Option<String>,
pub command: Option<String>,
pub args: Option<Vec<String>>,
pub model: Option<String>,
pub working_directory: Option<String>,
pub reason: Option<String>,
}Expand description
Payload for commands received from the backend.
Fields§
§command_id: StringUnique command identifier.
command_type: StringType of command (e.g., “send_input”, “slash_command”).
agent_id: Option<String>Target agent ID.
content: Option<String>Input content for send_input commands.
command: Option<String>Slash command name.
args: Option<Vec<String>>Slash command arguments.
model: Option<String>Model for spawn_agent commands.
working_directory: Option<String>Working directory for spawn_agent commands.
reason: Option<String>Reason for certain commands (e.g., disconnect).
Trait Implementations§
Source§impl Clone for CommandPayload
impl Clone for CommandPayload
Source§fn clone(&self) -> CommandPayload
fn clone(&self) -> CommandPayload
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandPayload
impl Debug for CommandPayload
Source§impl<'de> Deserialize<'de> for CommandPayload
impl<'de> Deserialize<'de> for CommandPayload
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 CommandPayload
impl RefUnwindSafe for CommandPayload
impl Send for CommandPayload
impl Sync for CommandPayload
impl Unpin for CommandPayload
impl UnsafeUnpin for CommandPayload
impl UnwindSafe for CommandPayload
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