pub struct UiSection {
pub theme: Option<ThemeArg>,
pub lang: Option<LangArg>,
pub verbose: Option<bool>,
pub editor: Option<String>,
}Expand description
[ui] 段:与同名命令行参数等价,优先级低于命令行。
Fields§
§theme: Option<ThemeArg>界面主题(auto | dark | light)
lang: Option<LangArg>界面语言(auto | zh | en)
verbose: Option<bool>是否回显执行的 git 命令
editor: Option<String>块编辑(e 键)使用的编辑器命令,可含参数(如 “code –wait”); 完整优先级:此处 > $VISUAL > $EDITOR > vim / vi(Windows 为 notepad)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UiSection
impl<'de> Deserialize<'de> for UiSection
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 UiSection
impl RefUnwindSafe for UiSection
impl Send for UiSection
impl Sync for UiSection
impl Unpin for UiSection
impl UnsafeUnpin for UiSection
impl UnwindSafe for UiSection
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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