pub struct StartSessionRequest {
pub create_managed_worktree: Option<bool>,
pub mjolnir_subagents: Option<bool>,
pub workspace_id: Option<String>,
pub profile_id: String,
pub target_id: String,
pub bundle_id: Option<String>,
pub project_directory: Option<PathBuf>,
pub title: Option<String>,
pub model: Option<String>,
pub effort: Option<String>,
pub prompt: Option<String>,
}Expand description
Create a session and, optionally, send its first prompt. Served in M2.
Fields§
§create_managed_worktree: Option<bool>§mjolnir_subagents: Option<bool>None follows the global [subagents] enabled setting.
workspace_id: Option<String>§profile_id: String§target_id: String§bundle_id: Option<String>§project_directory: Option<PathBuf>§title: Option<String>§model: Option<String>§effort: Option<String>§prompt: Option<String>Trait Implementations§
Source§impl Clone for StartSessionRequest
impl Clone for StartSessionRequest
Source§fn clone(&self) -> StartSessionRequest
fn clone(&self) -> StartSessionRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StartSessionRequest
impl Debug for StartSessionRequest
Source§impl Default for StartSessionRequest
impl Default for StartSessionRequest
Source§fn default() -> StartSessionRequest
fn default() -> StartSessionRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StartSessionRequest
impl<'de> Deserialize<'de> for StartSessionRequest
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
Source§impl PartialEq for StartSessionRequest
impl PartialEq for StartSessionRequest
Source§impl Serialize for StartSessionRequest
impl Serialize for StartSessionRequest
impl StructuralPartialEq for StartSessionRequest
Auto Trait Implementations§
impl Freeze for StartSessionRequest
impl RefUnwindSafe for StartSessionRequest
impl Send for StartSessionRequest
impl Sync for StartSessionRequest
impl Unpin for StartSessionRequest
impl UnsafeUnpin for StartSessionRequest
impl UnwindSafe for StartSessionRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.