pub struct MiddlewareLayerConfig {
pub layer: String,
pub config: Option<Value>,
}Expand description
One layer in a CandidateContent::MiddlewareComposition: the layer’s
registered name plus its configuration. A ToolCallBlocklist’s policy
is configuration; the layer’s code is not.
Fields§
§layer: StringThe layer’s registered name (the
crate::middleware::MiddlewareChain::names vocabulary).
config: Option<Value>The layer’s configuration, when it declares one — absent from the wire when unset, so a configuration-free layer (a request logger) carries no placeholder.
Trait Implementations§
Source§impl Clone for MiddlewareLayerConfig
impl Clone for MiddlewareLayerConfig
Source§impl Debug for MiddlewareLayerConfig
impl Debug for MiddlewareLayerConfig
Source§impl<'de> Deserialize<'de> for MiddlewareLayerConfig
impl<'de> Deserialize<'de> for MiddlewareLayerConfig
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 PartialEq for MiddlewareLayerConfig
impl PartialEq for MiddlewareLayerConfig
Source§impl Serialize for MiddlewareLayerConfig
impl Serialize for MiddlewareLayerConfig
impl StructuralPartialEq for MiddlewareLayerConfig
Auto Trait Implementations§
impl Freeze for MiddlewareLayerConfig
impl RefUnwindSafe for MiddlewareLayerConfig
impl Send for MiddlewareLayerConfig
impl Sync for MiddlewareLayerConfig
impl Unpin for MiddlewareLayerConfig
impl UnsafeUnpin for MiddlewareLayerConfig
impl UnwindSafe for MiddlewareLayerConfig
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