pub struct Capability {
pub name: String,
pub modality: Modality,
pub level: CapabilityLevel,
pub description: String,
pub sub_capabilities: Vec<String>,
}Expand description
A single capability (e.g., “code generation”, “image understanding”)
Fields§
§name: StringHuman-readable name of this capability (e.g., “code-generation”).
modality: ModalityThe modality this capability operates on.
level: CapabilityLevelProficiency level for this capability.
description: StringFree-text description of what this capability does.
sub_capabilities: Vec<String>Names of finer-grained sub-capabilities (e.g., “debugging”, “refactoring”).
Implementations§
Source§impl Capability
impl Capability
Sourcepub fn new(name: &str, modality: Modality, level: CapabilityLevel) -> Self
pub fn new(name: &str, modality: Modality, level: CapabilityLevel) -> Self
Creates a new capability with the given name, modality, and level.
Sourcepub fn with_description(self, desc: &str) -> Self
pub fn with_description(self, desc: &str) -> Self
Sets the description and returns self for builder chaining.
Trait Implementations§
Source§impl Clone for Capability
impl Clone for Capability
Source§fn clone(&self) -> Capability
fn clone(&self) -> Capability
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 Capability
impl Debug for Capability
Source§impl<'de> Deserialize<'de> for Capability
impl<'de> Deserialize<'de> for Capability
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 Capability
impl RefUnwindSafe for Capability
impl Send for Capability
impl Sync for Capability
impl Unpin for Capability
impl UnwindSafe for Capability
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