pub struct SystemMessage {
pub subtype: String,
pub cwd: Option<String>,
pub session_id: Option<String>,
pub tools: Option<Vec<String>>,
pub mcp_servers: Option<Vec<Value>>,
pub model: Option<String>,
pub permission_mode: Option<String>,
pub uuid: Option<String>,
pub data: Value,
}Expand description
System message
Fields§
§subtype: StringMessage subtype
cwd: Option<String>Current working directory
session_id: Option<String>Session ID
tools: Option<Vec<String>>Available tools
mcp_servers: Option<Vec<Value>>MCP servers
model: Option<String>Model being used
permission_mode: Option<String>Permission mode
uuid: Option<String>UUID
data: ValueAdditional data
Trait Implementations§
Source§impl Clone for SystemMessage
impl Clone for SystemMessage
Source§fn clone(&self) -> SystemMessage
fn clone(&self) -> SystemMessage
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 SystemMessage
impl Debug for SystemMessage
Source§impl<'de> Deserialize<'de> for SystemMessage
impl<'de> Deserialize<'de> for SystemMessage
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 SystemMessage
impl RefUnwindSafe for SystemMessage
impl Send for SystemMessage
impl Sync for SystemMessage
impl Unpin for SystemMessage
impl UnwindSafe for SystemMessage
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