pub struct SessionConfig {
pub name: Option<String>,
pub start_block: Option<BlockId>,
pub limits: SessionLimits,
pub capabilities: AgentCapabilities,
pub view_mode: ViewMode,
}Expand description
Configuration for creating a new session.
Fields§
§name: Option<String>Human-readable session name.
start_block: Option<BlockId>Starting block ID (defaults to document root).
limits: SessionLimitsSession limits.
capabilities: AgentCapabilitiesAgent capabilities.
view_mode: ViewModeInitial view mode.
Implementations§
Source§impl SessionConfig
impl SessionConfig
pub fn new() -> Self
pub fn with_name(self, name: &str) -> Self
pub fn with_start_block(self, block: BlockId) -> Self
pub fn with_limits(self, limits: SessionLimits) -> Self
pub fn with_capabilities(self, capabilities: AgentCapabilities) -> Self
pub fn with_view_mode(self, mode: ViewMode) -> Self
Trait Implementations§
Source§impl Clone for SessionConfig
impl Clone for SessionConfig
Source§fn clone(&self) -> SessionConfig
fn clone(&self) -> SessionConfig
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 moreSource§impl Debug for SessionConfig
impl Debug for SessionConfig
Source§impl Default for SessionConfig
impl Default for SessionConfig
Source§fn default() -> SessionConfig
fn default() -> SessionConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionConfig
impl RefUnwindSafe for SessionConfig
impl Send for SessionConfig
impl Sync for SessionConfig
impl Unpin for SessionConfig
impl UnwindSafe for SessionConfig
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