pub struct CapabilityValue {
pub name: String,
pub value: Value,
}Expand description
A concrete capability value chosen by the client for a specific call.
Passed in PluginCallContext.enabled_capabilities — Chat Engine forwards
these to the plugin so it knows which options were selected. Compare with
Capability which is the schema side.
Fields§
§name: StringMust match a capability name previously declared by the plugin.
value: ValueThe chosen value (e.g., "gpt-4", 0.9, false). Must validate
against the schema in the corresponding Capability.value.
Trait Implementations§
Source§impl Clone for CapabilityValue
impl Clone for CapabilityValue
Source§fn clone(&self) -> CapabilityValue
fn clone(&self) -> CapabilityValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CapabilityValue
impl Debug for CapabilityValue
Source§impl<'de> Deserialize<'de> for CapabilityValue
impl<'de> Deserialize<'de> for CapabilityValue
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 CapabilityValue
impl RefUnwindSafe for CapabilityValue
impl Send for CapabilityValue
impl Sync for CapabilityValue
impl Unpin for CapabilityValue
impl UnsafeUnpin for CapabilityValue
impl UnwindSafe for CapabilityValue
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