pub struct StatusLineConfig {
pub mode: StatusLineMode,
pub command: Option<String>,
pub refresh_interval_ms: u64,
pub command_timeout_ms: u64,
pub show_clock: bool,
}Fields§
§mode: StatusLineMode§command: Option<String>§refresh_interval_ms: u64§command_timeout_ms: u64§show_clock: boolShow the current system time (HH:MM:SS) on the status line (default: true).
Implementations§
Source§impl StatusLineConfig
impl StatusLineConfig
Sourcepub fn effective_mode(&self) -> StatusLineMode
pub fn effective_mode(&self) -> StatusLineMode
Get the effective status line mode, using defaults for unset values.
Following Codex PR #12015’s pattern for default configuration fallback, this method ensures that when a status line config is not explicitly set, sensible defaults are applied (automatic status line by default).
Trait Implementations§
Source§impl Clone for StatusLineConfig
impl Clone for StatusLineConfig
Source§impl Debug for StatusLineConfig
impl Debug for StatusLineConfig
Source§impl Default for StatusLineConfig
impl Default for StatusLineConfig
Source§impl<'de> Deserialize<'de> for StatusLineConfig
impl<'de> Deserialize<'de> for StatusLineConfig
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 JsonSchema for StatusLineConfig
impl JsonSchema for StatusLineConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for StatusLineConfig
impl RefUnwindSafe for StatusLineConfig
impl Send for StatusLineConfig
impl Sync for StatusLineConfig
impl Unpin for StatusLineConfig
impl UnsafeUnpin for StatusLineConfig
impl UnwindSafe for StatusLineConfig
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