#[non_exhaustive]pub struct SessionFsConfig {
pub initial_cwd: String,
pub session_state_path: String,
pub conventions: SessionFsConventions,
pub capabilities: Option<SessionFsCapabilities>,
}Expand description
Configuration for a custom session filesystem provider.
When set on ClientOptions::session_fs,
the SDK calls sessionFs.setProvider during Client::start
to tell the CLI to route per-session filesystem operations to the SDK.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.initial_cwd: StringInitial working directory for sessions (the user’s project directory).
session_state_path: StringPath within each session’s SessionFs where the runtime stores session-scoped files (events, workspace, checkpoints, etc.).
conventions: SessionFsConventionsPath conventions used by this filesystem provider.
capabilities: Option<SessionFsCapabilities>Optional capabilities such as SQLite support.
Implementations§
Source§impl SessionFsConfig
impl SessionFsConfig
Sourcepub fn new(
initial_cwd: impl Into<String>,
session_state_path: impl Into<String>,
conventions: SessionFsConventions,
) -> Self
pub fn new( initial_cwd: impl Into<String>, session_state_path: impl Into<String>, conventions: SessionFsConventions, ) -> Self
Build a new config with the required fields.
Sourcepub fn with_capabilities(self, capabilities: SessionFsCapabilities) -> Self
pub fn with_capabilities(self, capabilities: SessionFsCapabilities) -> Self
Set the capabilities on this config and return it (builder pattern).
Trait Implementations§
Source§impl Clone for SessionFsConfig
impl Clone for SessionFsConfig
Source§fn clone(&self) -> SessionFsConfig
fn clone(&self) -> SessionFsConfig
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 moreAuto Trait Implementations§
impl Freeze for SessionFsConfig
impl RefUnwindSafe for SessionFsConfig
impl Send for SessionFsConfig
impl Sync for SessionFsConfig
impl Unpin for SessionFsConfig
impl UnsafeUnpin for SessionFsConfig
impl UnwindSafe for SessionFsConfig
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