Struct terminal2::terminal_settings::TerminalSettings
source · pub struct TerminalSettings {Show 15 fields
pub shell: Shell,
pub working_directory: WorkingDirectory,
pub font_size: Option<Pixels>,
pub font_family: Option<String>,
pub line_height: TerminalLineHeight,
pub font_features: Option<FontFeatures>,
pub env: HashMap<String, String>,
pub blinking: TerminalBlink,
pub alternate_scroll: AlternateScroll,
pub option_as_meta: bool,
pub copy_on_select: bool,
pub dock: TerminalDockPosition,
pub default_width: f32,
pub default_height: f32,
pub detect_venv: VenvSettings,
}
Fields§
§shell: Shell
§working_directory: WorkingDirectory
§font_size: Option<Pixels>
§font_family: Option<String>
§line_height: TerminalLineHeight
§font_features: Option<FontFeatures>
§env: HashMap<String, String>
§blinking: TerminalBlink
§alternate_scroll: AlternateScroll
§option_as_meta: bool
§copy_on_select: bool
§dock: TerminalDockPosition
§default_width: f32
§default_height: f32
§detect_venv: VenvSettings
Trait Implementations§
source§impl<'de> Deserialize<'de> for TerminalSettings
impl<'de> Deserialize<'de> for TerminalSettings
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
source§impl Settings for TerminalSettings
impl Settings for TerminalSettings
source§const KEY: Option<&'static str> = _
const KEY: Option<&'static str> = _
The name of a key within the JSON file from which this setting should
be deserialized. If this is
None
, then the setting will be deserialized
from the root object.§type FileContent = TerminalSettingsContent
type FileContent = TerminalSettingsContent
The type that is stored in an individual JSON file.
source§fn load(
default_value: &Self::FileContent,
user_values: &[&Self::FileContent],
_: &mut AppContext
) -> Result<Self>
fn load( default_value: &Self::FileContent, user_values: &[&Self::FileContent], _: &mut AppContext ) -> Result<Self>
The logic for combining together values from one or more JSON files into the
final value for this setting. Read more
fn json_schema( generator: &mut SchemaGenerator, _: &SettingsJsonSchemaParams<'_>, _: &AppContext ) -> RootSchema
fn json_merge( default_value: &Self::FileContent, user_values: &[&Self::FileContent] ) -> Result<Self::FileContent, Error>
fn load_via_json_merge( default_value: &Self::FileContent, user_values: &[&Self::FileContent] ) -> Result<Self, Error>where Self: DeserializeOwned,
fn missing_default() -> Error
fn register(cx: &mut AppContext)where Self: Sized,
fn get<'a>(path: Option<(usize, &Path)>, cx: &'a AppContext) -> &'a Selfwhere Self: Sized,
fn get_global<'a>(cx: &'a AppContext) -> &'a Selfwhere Self: Sized,
fn override_global<'a>(settings: Self, cx: &'a mut AppContext)where Self: Sized,
Auto Trait Implementations§
impl RefUnwindSafe for TerminalSettings
impl Send for TerminalSettings
impl Sync for TerminalSettings
impl Unpin for TerminalSettings
impl UnwindSafe for TerminalSettings
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