pub struct LineEntryItem {
pub kind: Option<String>,
pub character: Option<String>,
pub merge: Option<bool>,
pub extra: BTreeMap<String, Value>,
}Expand description
Fields§
§kind: Option<String>"separator" or a segment id ("model", "git_branch", …).
When absent, the builder warns and drops the entry.
character: Option<String>Separator glyph for type = "separator" entries. Ignored
(with warning) on non-separator entries. When None on a
separator entry, the builder falls back to
[layout_options].separator.
merge: Option<bool>When true on a segment entry, the boundary to its right
renders without a separator (suppresses the implicit
interleave AND any explicit LineEntry::Item separator at
that boundary). Ignored (with warning) on separator entries.
extra: BTreeMap<String, Value>Forward-compat bag: keys outside the typed fields land here
per the toml::Value flatten pattern. The builder
warn-and-drops unknown keys today; future ADRs may consume.
Schema bypass: toml::Value has no JsonSchema impl, so
remap to serde_json::Value’s open-ended schema for the
additionalProperties fallthrough.
Trait Implementations§
Source§impl Clone for LineEntryItem
impl Clone for LineEntryItem
Source§fn clone(&self) -> LineEntryItem
fn clone(&self) -> LineEntryItem
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 LineEntryItem
impl Debug for LineEntryItem
Source§impl Default for LineEntryItem
impl Default for LineEntryItem
Source§fn default() -> LineEntryItem
fn default() -> LineEntryItem
Source§impl<'de> Deserialize<'de> for LineEntryItemwhere
LineEntryItem: Default,
impl<'de> Deserialize<'de> for LineEntryItemwhere
LineEntryItem: Default,
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 LineEntryItem
impl JsonSchema for LineEntryItem
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 inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for LineEntryItem
impl PartialEq for LineEntryItem
Source§fn eq(&self, other: &LineEntryItem) -> bool
fn eq(&self, other: &LineEntryItem) -> bool
self and other values to be equal, and is used by ==.