pub struct ReplConfig {
pub timeout: u64,
pub max_history: usize,
pub syntax_highlighting: bool,
pub auto_completion: bool,
pub show_line_numbers: bool,
}Expand description
REPL configuration
Fields§
§timeout: u64Command timeout in seconds
max_history: usizeMaximum command history size
syntax_highlighting: boolEnable syntax highlighting
auto_completion: boolEnable auto-completion
show_line_numbers: boolShow line numbers
Trait Implementations§
Source§impl Clone for ReplConfig
impl Clone for ReplConfig
Source§fn clone(&self) -> ReplConfig
fn clone(&self) -> ReplConfig
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 ReplConfig
impl Debug for ReplConfig
Source§impl Default for ReplConfig
impl Default for ReplConfig
Source§impl<'de> Deserialize<'de> for ReplConfig
impl<'de> Deserialize<'de> for ReplConfig
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
Auto Trait Implementations§
impl Freeze for ReplConfig
impl RefUnwindSafe for ReplConfig
impl Send for ReplConfig
impl Sync for ReplConfig
impl Unpin for ReplConfig
impl UnwindSafe for ReplConfig
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