pub struct SessionOptions {
pub placeholder: Option<String>,
pub surface_preference: SessionSurface,
pub inline_rows: u16,
pub event_callback: Option<InlineEventCallback>,
pub active_pty_sessions: Option<Arc<AtomicUsize>>,
pub keyboard_protocol: KeyboardProtocolSettings,
pub workspace_root: Option<PathBuf>,
pub slash_commands: Vec<SlashCommandItem>,
pub appearance: Option<AppearanceConfig>,
pub app_name: String,
pub non_interactive_hint: Option<String>,
}Expand description
Standalone session launch options for reusable integrations.
Fields§
§placeholder: Option<String>§surface_preference: SessionSurface§inline_rows: u16§event_callback: Option<InlineEventCallback>§active_pty_sessions: Option<Arc<AtomicUsize>>§keyboard_protocol: KeyboardProtocolSettings§workspace_root: Option<PathBuf>§slash_commands: Vec<SlashCommandItem>§appearance: Option<AppearanceConfig>§app_name: String§non_interactive_hint: Option<String>Implementations§
Source§impl SessionOptions
impl SessionOptions
Sourcepub fn from_host(host: &impl HostAdapter) -> Self
pub fn from_host(host: &impl HostAdapter) -> Self
Build options from a host adapter’s defaults.
Trait Implementations§
Source§impl Clone for SessionOptions
impl Clone for SessionOptions
Source§fn clone(&self) -> SessionOptions
fn clone(&self) -> SessionOptions
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 moreAuto Trait Implementations§
impl Freeze for SessionOptions
impl !RefUnwindSafe for SessionOptions
impl Send for SessionOptions
impl Sync for SessionOptions
impl Unpin for SessionOptions
impl UnsafeUnpin for SessionOptions
impl !UnwindSafe for SessionOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more