pub struct StartSessionOptions {
pub session_id: Option<String>,
pub workspace_root: Option<String>,
pub workspace_roots: Option<Vec<String>>,
pub model_id: Option<String>,
pub provider_id: Option<String>,
pub approval_mode: Option<ApprovalMode>,
pub config: Option<SessionConfig>,
}Expand description
Options for MuseClient::start_session. A field left None takes the
server’s default, except the workspace: with neither workspace_root nor
workspace_roots set, the session has no workspace.
Fields§
§session_id: Option<String>The new session’s id; the server mints one when None. This never
opens an existing session: an id the host already holds or has reserved
is refused.
workspace_root: Option<String>The session’s working folder, as an absolute path.
workspace_roots: Option<Vec<String>>The session’s workspace roots, as absolute paths; the first one is the
working folder. When workspace_root is also set, both must name the
same folder.
model_id: Option<String>The starting model.
provider_id: Option<String>The starting provider.
approval_mode: Option<ApprovalMode>The starting approval mode, one the host’s configuration defines.
config: Option<SessionConfig>Per-session configuration.
Trait Implementations§
Source§impl Clone for StartSessionOptions
impl Clone for StartSessionOptions
Source§impl Debug for StartSessionOptions
impl Debug for StartSessionOptions
Source§impl Default for StartSessionOptions
impl Default for StartSessionOptions
impl Eq for StartSessionOptions
Source§impl PartialEq for StartSessionOptions
impl PartialEq for StartSessionOptions
impl StructuralPartialEq for StartSessionOptions
Auto Trait Implementations§
impl Freeze for StartSessionOptions
impl RefUnwindSafe for StartSessionOptions
impl Send for StartSessionOptions
impl Sync for StartSessionOptions
impl Unpin for StartSessionOptions
impl UnsafeUnpin for StartSessionOptions
impl UnwindSafe for StartSessionOptions
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