pub struct NewSessionRequest {
pub cwd: String,
pub additional_directories: Option<Vec<String>>,
pub mcp_servers: Vec<McpServer>,
}Expand description
session/new request. Creates a new session.
Fields§
§cwd: StringThe working directory for this session. Must be an absolute path; the schema rejects relative paths on the wire.
additional_directories: Option<Vec<String>>Additional workspace roots the session should activate. Each path is absolute. When absent or empty, no additional roots are activated.
mcp_servers: Vec<McpServer>MCP servers the agent should connect to.
Vec<McpServer> is the schema’s mcpServers
field; required on the wire.
Trait Implementations§
Source§impl Clone for NewSessionRequest
impl Clone for NewSessionRequest
Source§impl Debug for NewSessionRequest
impl Debug for NewSessionRequest
Source§impl<'de> Deserialize<'de> for NewSessionRequest
impl<'de> Deserialize<'de> for NewSessionRequest
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
impl Eq for NewSessionRequest
Source§impl PartialEq for NewSessionRequest
impl PartialEq for NewSessionRequest
Source§impl Serialize for NewSessionRequest
impl Serialize for NewSessionRequest
impl StructuralPartialEq for NewSessionRequest
Auto Trait Implementations§
impl Freeze for NewSessionRequest
impl RefUnwindSafe for NewSessionRequest
impl Send for NewSessionRequest
impl Sync for NewSessionRequest
impl Unpin for NewSessionRequest
impl UnsafeUnpin for NewSessionRequest
impl UnwindSafe for NewSessionRequest
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