pub struct PromptEditorConfig {
pub auto_save: bool,
pub syntax_highlighting: bool,
pub line_numbers: bool,
pub word_wrap: bool,
}Expand description
Prompt editor configuration
Fields§
§auto_save: bool§syntax_highlighting: bool§line_numbers: bool§word_wrap: boolTrait Implementations§
Source§impl Clone for PromptEditorConfig
impl Clone for PromptEditorConfig
Source§fn clone(&self) -> PromptEditorConfig
fn clone(&self) -> PromptEditorConfig
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 PromptEditorConfig
impl Debug for PromptEditorConfig
Source§impl Default for PromptEditorConfig
impl Default for PromptEditorConfig
Source§impl<'de> Deserialize<'de> for PromptEditorConfig
impl<'de> Deserialize<'de> for PromptEditorConfig
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 PromptEditorConfig
impl RefUnwindSafe for PromptEditorConfig
impl Send for PromptEditorConfig
impl Sync for PromptEditorConfig
impl Unpin for PromptEditorConfig
impl UnsafeUnpin for PromptEditorConfig
impl UnwindSafe for PromptEditorConfig
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