pub struct EscribaConfig {
pub tema: Option<String>,
pub numeros_linha: Option<bool>,
pub numeros_relativos: Option<bool>,
pub largura_tab: Option<i64>,
pub quebra_suave: Option<bool>,
pub mostrar_statusline: Option<bool>,
pub mostrar_tabbar: Option<bool>,
}Fields§
§tema: Option<String>§numeros_linha: Option<bool>§numeros_relativos: Option<bool>§largura_tab: Option<i64>§quebra_suave: Option<bool>§mostrar_statusline: Option<bool>§mostrar_tabbar: Option<bool>Implementations§
Source§impl EscribaConfig
impl EscribaConfig
Trait Implementations§
Source§impl Clone for EscribaConfig
impl Clone for EscribaConfig
Source§fn clone(&self) -> EscribaConfig
fn clone(&self) -> EscribaConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EscribaConfig
impl Debug for EscribaConfig
Source§impl Default for EscribaConfig
impl Default for EscribaConfig
Source§fn default() -> EscribaConfig
fn default() -> EscribaConfig
Source§impl<'de> Deserialize<'de> for EscribaConfig
impl<'de> Deserialize<'de> for EscribaConfig
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>,
Source§impl JsonSchema for EscribaConfig
impl JsonSchema for EscribaConfig
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl PartialEq for EscribaConfig
impl PartialEq for EscribaConfig
Source§impl Serialize for EscribaConfig
impl Serialize for EscribaConfig
impl StructuralPartialEq for EscribaConfig
Source§impl TataraDomain for EscribaConfig
impl TataraDomain for EscribaConfig
Source§fn compile_from_args(args: &[Sexp]) -> Result<Self>
fn compile_from_args(args: &[Sexp]) -> Result<Self>
Source§impl TieredConfig for EscribaConfig
impl TieredConfig for EscribaConfig
Source§fn prescribed_default() -> Self
fn prescribed_default() -> Self
Tier 2 — prescribed: the curated defaults that ship today. These
MIRROR the load-bearing configs/blnvim-defaults.lisp baseline the
editor actually boots (theme vellum = ishou_tokens::FleetTheme::Vellum;
line numbers + relative numbers on; tab width 2; no soft wrap;
statusline on; tabbar off — showtabline=0, blnvim parity). The
.lisp remains the load-bearing prescription; this keeps
escriba config-show default honest about what ships.
Source§fn discovered() -> Self
fn discovered() -> Self
bare() overlaid with runtime auto-detect outputs.
Default: returns bare() unchanged. Consumers with detect
helpers override.Source§fn extend(self, _base: &Self) -> Self
fn extend(self, _base: &Self) -> Self
base. Default impl
returns self.clone() (full replacement). Consumers with
finer-grained per-field merge semantics override.Source§fn resolve_tier(tier: ConfigTier) -> Self
fn resolve_tier(tier: ConfigTier) -> Self
self from a tier selector — the operator-facing
entry point. Wraps the tier methods + env-var resolution +
optional YAML overlay into one call site every fleet app
uses identically. Read moreSource§fn resolve_from_env(env_var: &str) -> Self
fn resolve_from_env(env_var: &str) -> Self
<APP>_TIER) AND materialize the config in one call.
The fleet-wide canonical entry point at app startup.Source§fn resolve_progressive() -> ProgressiveResolution<Self>
fn resolve_progressive() -> ProgressiveResolution<Self>
Source§fn resolve_progressive_with(
overlays: &[ProgressiveLayer],
) -> ProgressiveResolution<Self>
fn resolve_progressive_with( overlays: &[ProgressiveLayer], ) -> ProgressiveResolution<Self>
Self::resolve_progressive with operator overlays (file / env /
runtime override) appended above the three trait tiers. Read moreSource§fn discovered_from_layers(layers: &[&dyn DiscoveryLayer]) -> Self
fn discovered_from_layers(layers: &[&dyn DiscoveryLayer]) -> Self
Self::discovered tier
from a declarative stack of DiscoveryLayers (typically one per
kanchi axis-group) instead of hand-rolling a struct literal. Read moreSource§fn diff_against(&self, baseline: &Self) -> ConfigDiff
fn diff_against(&self, baseline: &Self) -> ConfigDiff
self against baseline. Default: serialize both to
YAML and produce a line-oriented diff.Auto Trait Implementations§
impl Freeze for EscribaConfig
impl RefUnwindSafe for EscribaConfig
impl Send for EscribaConfig
impl Sync for EscribaConfig
impl Unpin for EscribaConfig
impl UnsafeUnpin for EscribaConfig
impl UnwindSafe for EscribaConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);