Struct MapKeySection
pub struct MapKeySection {
pub path: &'static str,
pub kind: MapKeyKind,
pub value_type: &'static str,
pub description: &'static str,
pub natural_key: Option<&'static str>,
pub resource_key: bool,
}Fields§
§path: &'static strDotted section path, e.g. providers.models, mcp.servers.
kind: MapKeyKindWhether the section is a map or a list.
value_type: &'static strRust type name of the value, e.g. ModelProviderConfig. For display only.
description: &'static strDoc comment on the field (flattened to one line). What the user sees when picking which kind of thing to add.
natural_key: Option<&'static str>Optional natural key used to address entries in list-backed sections.
resource_key: boolWhether this section’s map key is a #[resource_key] — a value
drawn from another domain (a model id, tool name, …) that may
itself contain dots, rather than a short operator-chosen alias
validated by validate_alias_key. Consumers that split a dotted
prop path into “map key” + “field name” by first-dot-boundary
MUST exclude resource_key sections: naive splitting corrupts a
resource key like gpt-4.1 into a bogus alias gpt-4 plus a
nonsense tail 1.
Trait Implementations§
Source§impl Clone for MapKeySection
impl Clone for MapKeySection
Source§fn clone(&self) -> MapKeySection
fn clone(&self) -> MapKeySection
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MapKeySection
impl Debug for MapKeySection
Source§impl JsonSchema for MapKeySection
impl JsonSchema for MapKeySection
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 Serialize for MapKeySection
impl Serialize for MapKeySection
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Copy for MapKeySection
Auto Trait Implementations§
impl Freeze for MapKeySection
impl RefUnwindSafe for MapKeySection
impl Send for MapKeySection
impl Sync for MapKeySection
impl Unpin for MapKeySection
impl UnsafeUnpin for MapKeySection
impl UnwindSafe for MapKeySection
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> 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>
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>
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