pub struct ConfigLayer {Show 20 fields
pub path_template: Option<String>,
pub default_base: Option<String>,
pub copy: Option<Vec<String>>,
pub editor: Option<String>,
pub hooks_post_create: Option<String>,
pub hooks_pre_remove: Option<String>,
pub remove_delete_merged_branch: Option<bool>,
pub remove_untracked_blocks: Option<bool>,
pub pr_default_remote: Option<String>,
pub submodules_init: Option<SubmoduleInit>,
pub agent_model: Option<AgentModel>,
pub agent_effort: Option<Effort>,
pub list_show_untracked: Option<bool>,
pub list_columns: Option<Vec<Column>>,
pub ui_nerd_fonts: Option<bool>,
pub ui_mouse: Option<bool>,
pub ui_color: Option<ColorChoice>,
pub ui_theme: Option<ThemePreset>,
pub theme_overrides: ThemeOverrides,
pub ui_keybindings: Vec<(KeyAction, KeyChord)>,
}Expand description
One configuration layer (a single file’s settings, or flags); every field is optional and only present keys override lower layers.
Fields§
§path_template: Option<String>path_template.
default_base: Option<String>default_base.
copy: Option<Vec<String>>copy.
editor: Option<String>editor.
hooks_post_create: Option<String>hooks.post_create.
hooks_pre_remove: Option<String>hooks.pre_remove.
remove_delete_merged_branch: Option<bool>remove.delete_merged_branch.
remove_untracked_blocks: Option<bool>remove.untracked_blocks.
pr_default_remote: Option<String>pr.default_remote.
submodules_init: Option<SubmoduleInit>submodules.init.
agent_model: Option<AgentModel>agent.model.
agent_effort: Option<Effort>agent.effort.
list_show_untracked: Option<bool>list.show_untracked.
list_columns: Option<Vec<Column>>list.columns.
ui_nerd_fonts: Option<bool>ui.nerd_fonts.
ui_mouse: Option<bool>ui.mouse.
ui_color: Option<ColorChoice>ui.color.
ui_theme: Option<ThemePreset>ui.theme.preset.
theme_overrides: ThemeOverrides[ui.theme] per-color overrides present in this layer.
ui_keybindings: Vec<(KeyAction, KeyChord)>ui.keybindings (action → chord) overrides.
Trait Implementations§
Source§impl Clone for ConfigLayer
impl Clone for ConfigLayer
Source§fn clone(&self) -> ConfigLayer
fn clone(&self) -> ConfigLayer
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 moreSource§impl Debug for ConfigLayer
impl Debug for ConfigLayer
Source§impl Default for ConfigLayer
impl Default for ConfigLayer
Source§fn default() -> ConfigLayer
fn default() -> ConfigLayer
Returns the “default value” for a type. Read more
impl Eq for ConfigLayer
Source§impl PartialEq for ConfigLayer
impl PartialEq for ConfigLayer
Source§fn eq(&self, other: &ConfigLayer) -> bool
fn eq(&self, other: &ConfigLayer) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConfigLayer
Auto Trait Implementations§
impl Freeze for ConfigLayer
impl RefUnwindSafe for ConfigLayer
impl Send for ConfigLayer
impl Sync for ConfigLayer
impl Unpin for ConfigLayer
impl UnsafeUnpin for ConfigLayer
impl UnwindSafe for ConfigLayer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more