pub struct ConfigFieldEntry {
pub path: String,
pub category: String,
pub kind: PropKind,
pub type_hint: String,
pub value: Option<Value>,
pub populated: bool,
pub is_secret: bool,
pub is_env_overridden: bool,
pub enum_variants: Vec<String>,
pub description: String,
pub section: Option<String>,
pub tab: ConfigTab,
}Expand description
Serializable wire representation of a config field for API consumers
(RPC dispatch, gateway, TUI). Single source of truth — replaces the
gateway’s local ListEntry and the RPC dispatch’s ad-hoc JSON.
Built from PropFieldInfo via ConfigFieldEntry::from_prop_field.
Fields§
§path: String§category: String§kind: PropKind§type_hint: String§value: Option<Value>§populated: bool§is_secret: bool§is_env_overridden: bool§enum_variants: Vec<String>§description: String§section: Option<String>§tab: ConfigTabTab grouping. ConfigTab::None = no tab grouping (flat display).
Implementations§
Source§impl ConfigFieldEntry
impl ConfigFieldEntry
Sourcepub fn from_prop_field(info: PropFieldInfo, is_env_overridden: bool) -> Self
pub fn from_prop_field(info: PropFieldInfo, is_env_overridden: bool) -> Self
Convert a PropFieldInfo (server-side introspection) into its wire
representation. Secrets are masked (value omitted). The caller supplies
is_env_overridden from Config::prop_is_env_overridden.
Trait Implementations§
Source§impl Clone for ConfigFieldEntry
impl Clone for ConfigFieldEntry
Source§fn clone(&self) -> ConfigFieldEntry
fn clone(&self) -> ConfigFieldEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 ConfigFieldEntry
impl Debug for ConfigFieldEntry
Source§impl<'de> Deserialize<'de> for ConfigFieldEntry
impl<'de> Deserialize<'de> for ConfigFieldEntry
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 ConfigFieldEntry
impl RefUnwindSafe for ConfigFieldEntry
impl Send for ConfigFieldEntry
impl Sync for ConfigFieldEntry
impl Unpin for ConfigFieldEntry
impl UnsafeUnpin for ConfigFieldEntry
impl UnwindSafe for ConfigFieldEntry
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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