pub struct CreateSession {
pub title: SessionTitle,
pub screen_size: ScreenSize,
pub shell_timeouts: ShellTimeouts,
pub owner: OwnerId,
pub idle_secs: NonZeroU32,
}Expand description
Body of POST /sessions.
Fields§
§title: SessionTitle§screen_size: ScreenSizeSize of the session’s screen, applied when the screen opens.
shell_timeouts: ShellTimeoutsTimeouts for the session’s shell commands.
owner: OwnerIdThe MCP server process that keeps the session alive with heartbeats.
idle_secs: NonZeroU32Seconds without agent calls after which the session ends.
Trait Implementations§
Source§impl Clone for CreateSession
impl Clone for CreateSession
Source§impl Debug for CreateSession
impl Debug for CreateSession
Source§impl<'de> Deserialize<'de> for CreateSession
impl<'de> Deserialize<'de> for CreateSession
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 CreateSession
Source§impl PartialEq for CreateSession
impl PartialEq for CreateSession
Source§impl Serialize for CreateSession
impl Serialize for CreateSession
impl StructuralPartialEq for CreateSession
Auto Trait Implementations§
impl Freeze for CreateSession
impl RefUnwindSafe for CreateSession
impl Send for CreateSession
impl Sync for CreateSession
impl Unpin for CreateSession
impl UnsafeUnpin for CreateSession
impl UnwindSafe for CreateSession
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